diff options
| author | Yuli Huang <yuli@google.com> | 2012-05-21 15:12:01 +0800 |
|---|---|---|
| committer | Yuli Huang <yuli@google.com> | 2012-05-21 15:12:01 +0800 |
| commit | 8e4eb7e6d69c2f22605ce96837c2b14d48d084b0 (patch) | |
| tree | 853c73769f615214a5c5579d9a8e2d346deecdd3 | |
| parent | c9f743a777cf5e5e91bad7810584be052db21eed (diff) | |
| download | android_packages_apps_Gallery2-8e4eb7e6d69c2f22605ce96837c2b14d48d084b0.tar.gz android_packages_apps_Gallery2-8e4eb7e6d69c2f22605ce96837c2b14d48d084b0.tar.bz2 android_packages_apps_Gallery2-8e4eb7e6d69c2f22605ce96837c2b14d48d084b0.zip | |
Fix the detail isn't updated for the selected thumbnail.
bug:6521826
Change-Id: I1c07c10414ad45721b65583ed5f976c992d27698
| -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(); } |
