diff options
-rw-r--r-- | src/com/android/gallery3d/app/AlbumPage.java | 1 | ||||
-rw-r--r-- | src/com/android/gallery3d/app/AlbumSetPage.java | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/AlbumPage.java b/src/com/android/gallery3d/app/AlbumPage.java index efffe4075..0fcd7a759 100644 --- a/src/com/android/gallery3d/app/AlbumPage.java +++ b/src/com/android/gallery3d/app/AlbumPage.java @@ -164,6 +164,7 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster } private void onSingleTapUp(int slotIndex) { + if (!mIsActive) return; MediaItem item = mAlbumDataAdapter.get(slotIndex); if (item == null) { Log.w(TAG, "item not ready yet, ignore the click"); diff --git a/src/com/android/gallery3d/app/AlbumSetPage.java b/src/com/android/gallery3d/app/AlbumSetPage.java index cbd6789b4..60de019de 100644 --- a/src/com/android/gallery3d/app/AlbumSetPage.java +++ b/src/com/android/gallery3d/app/AlbumSetPage.java @@ -172,6 +172,7 @@ public class AlbumSetPage extends ActivityState implements } public void onSingleTapUp(int slotIndex) { + if (!mIsActive) return; MediaSet targetSet = mAlbumSetDataAdapter.getMediaSet(slotIndex); if (targetSet == null) return; // Content is dirty, we shall reload soon |