diff options
author | Ray Chen <raychen@google.com> | 2012-05-15 11:22:21 +0800 |
---|---|---|
committer | Ray Chen <raychen@google.com> | 2012-05-16 09:16:13 +0800 |
commit | 9a033b07b8e0d9fe7419b7a0d876e9c7febf43c8 (patch) | |
tree | 4b22cb8616b37134890515d37b6723aea7d9f399 /src/com/android/gallery3d/ui/ActionModeHandler.java | |
parent | 00af9fc9bc8a2eefd3e506ce23fc00c67b1c8be9 (diff) | |
download | android_packages_apps_Gallery2-9a033b07b8e0d9fe7419b7a0d876e9c7febf43c8.tar.gz android_packages_apps_Gallery2-9a033b07b8e0d9fe7419b7a0d876e9c7febf43c8.tar.bz2 android_packages_apps_Gallery2-9a033b07b8e0d9fe7419b7a0d876e9c7febf43c8.zip |
Fix 6046544: Deleting a photo takes multiple steps and the flow is inconsistent with other deleting flows on other core apps
Per request, change the confirm dialog message to "Delete the selected item(s)?"
b: 6046544
Change-Id: I46f7fd42a9f9fbf2399aca78ed9b2e67a15acb65
Diffstat (limited to 'src/com/android/gallery3d/ui/ActionModeHandler.java')
-rw-r--r-- | src/com/android/gallery3d/ui/ActionModeHandler.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/com/android/gallery3d/ui/ActionModeHandler.java b/src/com/android/gallery3d/ui/ActionModeHandler.java index d8e60d3a2..c5773ed3e 100644 --- a/src/com/android/gallery3d/ui/ActionModeHandler.java +++ b/src/com/android/gallery3d/ui/ActionModeHandler.java @@ -125,14 +125,15 @@ public class ActionModeHandler implements ActionMode.Callback { } } ProgressListener listener = null; - boolean needsConfirm = false; + String confirmMsg = null; int action = item.getItemId(); if (action == R.id.action_import) { listener = new ImportCompleteListener(mActivity); } else if (item.getItemId() == R.id.action_delete) { - needsConfirm = true; + confirmMsg = mActivity.getResources().getQuantityString( + R.plurals.delete_selection, mSelectionManager.getSelectedCount()); } - mMenuExecutor.onMenuClicked(item, needsConfirm, listener); + mMenuExecutor.onMenuClicked(item, confirmMsg, listener); if (action == R.id.action_select_all) { updateSupportedOperation(); updateSelectionMenu(); |