Permalink
Browse files

Replaced hardcoded strings with references to string resources

  • Loading branch information...
1 parent 16afff4 commit 8c66a2f835b76f323682862a6f4bc4619a86907c @cketti cketti committed Mar 18, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 src/com/fsck/k9/activity/ChooseFolder.java
@@ -235,15 +235,17 @@ 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();
mAdapter.getFilter().filter(value);
}
});
- 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("");

0 comments on commit 8c66a2f

Please sign in to comment.