diff options
author | Ray Chen <raychen@google.com> | 2012-05-03 13:10:51 +0800 |
---|---|---|
committer | Ray Chen <raychen@google.com> | 2012-05-22 11:06:48 +0800 |
commit | 7f9061790e1b67b6c674314ac41a399c550f8b88 (patch) | |
tree | 45b654cdcd4a2e3764d6ff5fdf5bbff3d227b443 /src/com/android/gallery3d/ui/ActionModeHandler.java | |
parent | 6ca39c75e668eab51645f33117cae5156f64975d (diff) | |
download | android_packages_apps_Snap-7f9061790e1b67b6c674314ac41a399c550f8b88.tar.gz android_packages_apps_Snap-7f9061790e1b67b6c674314ac41a399c550f8b88.tar.bz2 android_packages_apps_Snap-7f9061790e1b67b6c674314ac41a399c550f8b88.zip |
Fix 6360834 Select All is shown in place of Deselect all option
The CL changes the SelectionManager's toggle method so it changes itself to
inverse selection mode when all items are already selected, and onSelectionModeChange
will be triggered so the listener can update the selection menu (Select all/Deselect all)
and ActionBar.
Change-Id: I9aa5507067415e52f6800c254ecb4d68e7395ffa
b: 6360834
Diffstat (limited to 'src/com/android/gallery3d/ui/ActionModeHandler.java')
-rw-r--r-- | src/com/android/gallery3d/ui/ActionModeHandler.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/ui/ActionModeHandler.java b/src/com/android/gallery3d/ui/ActionModeHandler.java index c5773ed3e..746d41d4b 100644 --- a/src/com/android/gallery3d/ui/ActionModeHandler.java +++ b/src/com/android/gallery3d/ui/ActionModeHandler.java @@ -283,6 +283,8 @@ public class ActionModeHandler implements ActionMode.Callback { mMenuTask.cancel(); } + updateSelectionMenu(); + // Disable share action until share intent is in good shape final MenuItem item = mShareActionProvider != null ? mMenu.findItem(R.id.action_share) : null; |