Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Replaced hardcoded strings with references to string resources

  • Loading branch information...
commit 8c66a2f835b76f323682862a6f4bc4619a86907c 1 parent 16afff4
@cketti cketti authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/com/fsck/k9/activity/ChooseFolder.java
View
6 src/com/fsck/k9/activity/ChooseFolder.java
@@ -235,7 +235,8 @@ public void afterTextChanged(Editable s) { /* not used */ }
input.setHint(R.string.folder_list_filter_hint);
filterAlert.setView(input);
- filterAlert.setPositiveButton("Ok", new DialogInterface.OnClickListener() {
+ String okay = getString(R.string.okay_action);
+ filterAlert.setPositiveButton(okay, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int whichButton) {
String value = input.getText().toString().trim();
@@ -243,7 +244,8 @@ public void onClick(DialogInterface dialog, int whichButton) {
}
});
- filterAlert.setNegativeButton("Cancel", new DialogInterface.OnClickListener() {
+ String cancel = getString(R.string.cancel_action);
+ filterAlert.setNegativeButton(cancel, new DialogInterface.OnClickListener() {
@Override
public void onClick(DialogInterface dialog, int whichButton) {
mAdapter.getFilter().filter("");
Please sign in to comment.
Something went wrong with that request. Please try again.