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:
parent
763e2853d7
commit
933a8fdcd5
@ -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_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 -->
|
||||
<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 -->
|
||||
|
@ -696,7 +696,9 @@ public class MessageList extends K9ListActivity implements
|
||||
mSelectedCount = getSelectionFromCheckboxes().size();
|
||||
if (mSelectedCount > 0) {
|
||||
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;
|
||||
}
|
||||
mAdapter.notifyDataSetChanged();
|
||||
mActionMode.setTitle(mSelectedCount+" "+getString(R.string.actionbar_selected));
|
||||
mActionMode.setTitle(String.format(getString(R.string.actionbar_selected), mSelectedCount));
|
||||
|
||||
if (mQueryString != null) {
|
||||
// we might have to disable some options
|
||||
|
Loading…
Reference in New Issue
Block a user