diff options
-rw-r--r-- | src/com/android/gallery3d/app/AlbumPage.java | 2 | ||||
-rw-r--r-- | src/com/android/gallery3d/app/AlbumSetPage.java | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/AlbumPage.java b/src/com/android/gallery3d/app/AlbumPage.java index 3033b937c..b5ad2a5c6 100644 --- a/src/com/android/gallery3d/app/AlbumPage.java +++ b/src/com/android/gallery3d/app/AlbumPage.java @@ -238,6 +238,7 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster MediaItem item = mAlbumDataAdapter.get(slotIndex); if (item == null) return; // Item not ready yet, ignore the click mSelectionManager.toggle(item.getPath()); + mDetailsSource.findIndex(slotIndex); mSlotView.invalidate(); } else { // Show pressed-up animation for the single-tap. @@ -308,6 +309,7 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster if (item == null) return; mSelectionManager.setAutoLeaveSelectionMode(true); mSelectionManager.toggle(item.getPath()); + mDetailsSource.findIndex(slotIndex); mSlotView.invalidate(); } diff --git a/src/com/android/gallery3d/app/AlbumSetPage.java b/src/com/android/gallery3d/app/AlbumSetPage.java index 0a0b35402..c6e3596ec 100644 --- a/src/com/android/gallery3d/app/AlbumSetPage.java +++ b/src/com/android/gallery3d/app/AlbumSetPage.java @@ -250,6 +250,7 @@ public class AlbumSetPage extends ActivityState implements if (set == null) return; mSelectionManager.setAutoLeaveSelectionMode(true); mSelectionManager.toggle(set.getPath()); + mDetailsSource.findIndex(slotIndex); mSlotView.invalidate(); } |