summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOwen Lin <owenlin@google.com>2012-05-02 03:29:17 -0700
committerAndroid (Google) Code Review <android-gerrit@google.com>2012-05-02 03:29:17 -0700
commitedd4807d55c34683fdf87770559bd16a5f9163d7 (patch)
treed3f3c9b040fd63991fa10c60da2fd6113f189d52 /src
parent603f9090bed0908374eda827be2c08a7a1b8d8c2 (diff)
parentc63554245d9a822a9fbe5aeda8612624434fd247 (diff)
downloadandroid_packages_apps_Gallery2-edd4807d55c34683fdf87770559bd16a5f9163d7.tar.gz
android_packages_apps_Gallery2-edd4807d55c34683fdf87770559bd16a5f9163d7.tar.bz2
android_packages_apps_Gallery2-edd4807d55c34683fdf87770559bd16a5f9163d7.zip
Merge "Change thumbnail's position only when it is invisible." into jb-dev
Diffstat (limited to 'src')
-rw-r--r--src/com/android/gallery3d/app/AlbumPage.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/AlbumPage.java b/src/com/android/gallery3d/app/AlbumPage.java
index 0e3e31f7e..70831b48d 100644
--- a/src/com/android/gallery3d/app/AlbumPage.java
+++ b/src/com/android/gallery3d/app/AlbumPage.java
@@ -537,7 +537,7 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster
case REQUEST_PHOTO: {
if (data == null) return;
mFocusIndex = data.getIntExtra(PhotoPage.KEY_RETURN_INDEX_HINT, 0);
- mSlotView.setCenterIndex(mFocusIndex);
+ mSlotView.makeSlotVisible(mFocusIndex);
mSlotView.startRestoringAnimation(mFocusIndex);
break;
}