Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 448e3801 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "Contacts: Update dialog with the correct selected count"

parents bb8ec4f7 edc38fbf
Loading
Loading
Loading
Loading
+16 −0
Original line number Diff line number Diff line
@@ -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;