OSDN Git Service

Change thumbnail's position only when it is invisible.
authorOwen Lin <owenlin@google.com>
Wed, 2 May 2012 09:22:52 +0000 (17:22 +0800)
committerOwen Lin <owenlin@google.com>
Wed, 2 May 2012 09:22:52 +0000 (17:22 +0800)
bug:6393694
Change-Id: I33f41c3c894b4c6d28e0832cfd4badbfca3a4f64

src/com/android/gallery3d/app/AlbumPage.java

index 0e3e31f..70831b4 100644 (file)
@@ -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;
             }