diff options
-rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index b1736203c..5f97fb2f7 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -766,6 +766,9 @@ public class PhotoPage extends ActivityState implements data.putString(AlbumPage.KEY_PARENT_MEDIA_PATH, mActivity.getDataManager().getTopSetPath( DataManager.INCLUDE_ALL)); + // We only show cluster menu in the first AlbumPage in stack + boolean inAlbum = mActivity.getStateManager().hasStateClass(AlbumPage.class); + data.putBoolean(AlbumPage.KEY_SHOW_CLUSTER_MENU, !inAlbum); mActivity.getTransitionStore().put( KEY_RETURN_INDEX_HINT, mCurrentIndex); mActivity.getStateManager().startState(AlbumPage.class, data); |