OSDN Git Service

Fix 6360834 Select All is shown in place of Deselect all option
authorRay Chen <raychen@google.com>
Thu, 3 May 2012 05:10:51 +0000 (13:10 +0800)
committerRay Chen <raychen@google.com>
Wed, 9 May 2012 01:31:39 +0000 (09:31 +0800)
commite7a49195b7f65237668edbae3b5af1335d0aae66
treec624bc8b0c5abea52dcff0e969ea258b4e3ad981
parentac02f46aa7ec727b839affb9aee415f01c1c2193
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: I570a299cc8fd7d1d5acab948f9c6531a9adde486
b: 6360834
src/com/android/gallery3d/app/AlbumSetPage.java
src/com/android/gallery3d/ui/ActionModeHandler.java
src/com/android/gallery3d/ui/SelectionManager.java