From 8e4eb7e6d69c2f22605ce96837c2b14d48d084b0 Mon Sep 17 00:00:00 2001 From: Yuli Huang Date: Mon, 21 May 2012 15:12:01 +0800 Subject: Fix the detail isn't updated for the selected thumbnail. bug:6521826 Change-Id: I1c07c10414ad45721b65583ed5f976c992d27698 --- src/com/android/gallery3d/app/AlbumPage.java | 2 ++ src/com/android/gallery3d/app/AlbumSetPage.java | 1 + 2 files changed, 3 insertions(+) (limited to 'src/com') 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(); } -- cgit v1.2.3