1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-24 02:12:15 -05:00

Made actionbar_selected a format string

This commit is contained in:
cketti 2012-07-24 00:39:58 +02:00 committed by Andrew Chen
parent 763e2853d7
commit 933a8fdcd5
2 changed files with 5 additions and 3 deletions

View File

@ -99,7 +99,7 @@ http://k9mail.googlecode.com/
<string name="status_next_poll">\u0020(Next poll @ <xliff:g id="nexttime">%s</xliff:g>)</string> <string name="status_next_poll">\u0020(Next poll @ <xliff:g id="nexttime">%s</xliff:g>)</string>
<string name="status_syncing_off">\u0020(Syncing disabled)</string> <string name="status_syncing_off">\u0020(Syncing disabled)</string>
<string name="actionbar_selected">selected</string> <string name="actionbar_selected"><xliff:g id="selection_count">%d</xliff:g> selected</string>
<!-- Actions will be used as buttons and in menu items --> <!-- Actions will be used as buttons and in menu items -->
<string name="next_action">Next</string> <!-- Used as part of a multi-step process --> <string name="next_action">Next</string> <!-- Used as part of a multi-step process -->
<string name="previous_action">Previous</string> <!-- Used as part of a multi-step process --> <string name="previous_action">Previous</string> <!-- Used as part of a multi-step process -->

View File

@ -696,7 +696,9 @@ public class MessageList extends K9ListActivity implements
mSelectedCount = getSelectionFromCheckboxes().size(); mSelectedCount = getSelectionFromCheckboxes().size();
if (mSelectedCount > 0) { if (mSelectedCount > 0) {
mActionMode = MessageList.this.startActionMode(mActionModeCallback); mActionMode = MessageList.this.startActionMode(mActionModeCallback);
mActionMode.setTitle(mSelectedCount + " " + getString(R.string.actionbar_selected)); mActionMode.setTitle(String.format(
getString(R.string.actionbar_selected),
mSelectedCount));
} }
} }
@ -2380,7 +2382,7 @@ public class MessageList extends K9ListActivity implements
mSelectedCount += 1; mSelectedCount += 1;
} }
mAdapter.notifyDataSetChanged(); mAdapter.notifyDataSetChanged();
mActionMode.setTitle(mSelectedCount+" "+getString(R.string.actionbar_selected)); mActionMode.setTitle(String.format(getString(R.string.actionbar_selected), mSelectedCount));
if (mQueryString != null) { if (mQueryString != null) {
// we might have to disable some options // we might have to disable some options