summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorWei Huang <weih@google.com>2012-05-21 12:57:56 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-21 12:57:56 -0700
commit52973767f43e7f7e3637cbd31e1c52c3285a2522 (patch)
treef3a600d9ec022e892f98b19886e35ee83189cc6c /src
parent2789bb0256e62b29c04f608510ae11df2d35dca9 (diff)
parent07230947ed37713cd600da05abeadcee7781d6b3 (diff)
downloadandroid_packages_apps_Snap-52973767f43e7f7e3637cbd31e1c52c3285a2522.tar.gz
android_packages_apps_Snap-52973767f43e7f7e3637cbd31e1c52c3285a2522.tar.bz2
android_packages_apps_Snap-52973767f43e7f7e3637cbd31e1c52c3285a2522.zip
Merge "Fix the detail isn't updated for the selected thumbnail." into jb-dev
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/app/AlbumPage.java2
-rw-r--r--src/com/android/gallery3d/app/AlbumSetPage.java1
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();
}