1
0
mirror of https://github.com/moparisthebest/k-9 synced 2025-01-11 21:58:35 -05:00

Fix dialog message when deleting multiple messages from a notification

This commit is contained in:
cketti 2013-02-19 05:38:48 +01:00
parent 3379fdb573
commit fdfaf03b7a

View File

@ -88,8 +88,9 @@ public class NotificationDeleteConfirmation extends Activity {
AlertDialog alert = (AlertDialog) d; AlertDialog alert = (AlertDialog) d;
switch (id) { switch (id) {
case DIALOG_CONFIRM: case DIALOG_CONFIRM:
int messageCount = mMessageRefs.size();
alert.setMessage(getResources().getQuantityString( alert.setMessage(getResources().getQuantityString(
R.plurals.dialog_confirm_delete_message, mMessageRefs.size())); R.plurals.dialog_confirm_delete_message, messageCount, messageCount));
break; break;
} }