From 9159cccd5d7e840b04c2507bfe29c76e046a4f6f Mon Sep 17 00:00:00 2001 From: Bobby Georgescu Date: Tue, 11 Sep 2012 13:47:27 -0700 Subject: Reskin: fix bug introduce by Gallery reskin Bug: 7146147 Bug: 7050303 Change-Id: Ia9782868937cc9a03e4c8b5f77033d13d80d5d8a --- src/com/android/gallery3d/app/AlbumPage.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/com/android/gallery3d/app/AlbumPage.java b/src/com/android/gallery3d/app/AlbumPage.java index d9e8d7ee1..cbf9c1a62 100644 --- a/src/com/android/gallery3d/app/AlbumPage.java +++ b/src/com/android/gallery3d/app/AlbumPage.java @@ -560,6 +560,7 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster } private void prepareAnimationBackToFilmstrip(int slotIndex) { + if (!mAlbumDataAdapter.isActive(slotIndex)) return; prepareFadeOutTexture(); TransitionStore transitions = mActivity.getTransitionStore(); transitions.put(PhotoPage.KEY_INDEX_HINT, slotIndex); -- cgit v1.2.3