diff options
author | Raj Yengisetty <rajesh@cyngn.com> | 2015-02-05 16:46:24 -0800 |
---|---|---|
committer | Jessica Wagantall <jessicag@codeaurora.org> | 2015-02-09 18:27:43 -0800 |
commit | edc38fbf09ca0a19faee2bb9b2678c53e700bbda (patch) | |
tree | ef8e8bba2155d750f40ccaed29e3ff69e403d6c3 | |
parent | bb8ec4f7c973c3cdea900145fc2e4fe4eb930d69 (diff) | |
download | packages_apps_Contacts-edc38fbf09ca0a19faee2bb9b2678c53e700bbda.tar.gz packages_apps_Contacts-edc38fbf09ca0a19faee2bb9b2678c53e700bbda.tar.bz2 packages_apps_Contacts-edc38fbf09ca0a19faee2bb9b2678c53e700bbda.zip |
Contacts: Update dialog with the correct selected count
Delete contacts
SIM import contacts
Repro:
- Open "Delete" from the overflow menu
- Select one contact and select done in action bar
- Observe: dialog shows 1 contact to delete
- Cancel dialog and select another contact for deletion
- Select done in action bar
- Observe: dialog still shows 1 contact to delete
Change-Id: Icd9ee29f102386a5b3642614e1f7c209318c7702
(cherry picked from commit 4fe0b5d499e6fcf9cc212de28cf7988439932627)
-rw-r--r-- | src/com/android/contacts/activities/MultiPickContactActivity.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/com/android/contacts/activities/MultiPickContactActivity.java b/src/com/android/contacts/activities/MultiPickContactActivity.java index 903047b7f..e4f71b4ac 100644 --- a/src/com/android/contacts/activities/MultiPickContactActivity.java +++ b/src/com/android/contacts/activities/MultiPickContactActivity.java @@ -641,6 +641,22 @@ public class MultiPickContactActivity extends ListActivity implements return super.onCreateDialog(id, bundle); } + @Override + protected void onPrepareDialog(int id, Dialog dialog, Bundle bundle) { + switch (id) { + case R.id.dialog_delete_contact_confirmation: + ((AlertDialog) dialog).setMessage(getResources().getQuantityString( + R.plurals.ContactMultiDeleteConfirmation, + mChoiceSet.size(), mChoiceSet.size())); + break; + case R.id.dialog_import_sim_contact_confirmation: + ((AlertDialog) dialog).setMessage(getResources().getQuantityString( + R.plurals.ContactMultiImportConfirmation, + mChoiceSet.size(), mChoiceSet.size())); + break; + } + } + private class DeleteContactsThread extends Thread implements DialogInterface.OnCancelListener, DialogInterface.OnClickListener { boolean mCanceled = false; |