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>
Tue, 22 May 2012 03:06:48 +0000 (11:06 +0800)
commit21c2e665fdc1d1af0c91ab9c104d13fb7dc2444e
tree8d9e745cd2915dac7e3487ecf0ca63a623865889
parent3efc2b24e29f7591993c43ef2653332054203578
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
src/com/android/gallery3d/app/AlbumSetPage.java
src/com/android/gallery3d/app/PhotoPage.java
src/com/android/gallery3d/ui/ActionModeHandler.java
src/com/android/gallery3d/ui/SelectionManager.java