diff options
| author | Wei Huang <weih@google.com> | 2012-05-21 12:57:56 -0700 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2012-05-21 12:57:56 -0700 |
| commit | 614fe145f539119084b4cf0b1d6892bfcded1a0b (patch) | |
| tree | 4be7ac2e778de8ec4e4e7eabeb3800edbb62d89e /src/com | |
| parent | a3871050845b4921379add2b126add3cfbab1109 (diff) | |
| parent | 8e4eb7e6d69c2f22605ce96837c2b14d48d084b0 (diff) | |
| download | android_packages_apps_Gallery2-614fe145f539119084b4cf0b1d6892bfcded1a0b.tar.gz android_packages_apps_Gallery2-614fe145f539119084b4cf0b1d6892bfcded1a0b.tar.bz2 android_packages_apps_Gallery2-614fe145f539119084b4cf0b1d6892bfcded1a0b.zip | |
Merge "Fix the detail isn't updated for the selected thumbnail." into jb-dev
Diffstat (limited to 'src/com')
| -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(); } |
