From dbf60d199b4bc8fce3ace348e54308880b5eb599 Mon Sep 17 00:00:00 2001 From: Bobby Georgescu Date: Thu, 4 Oct 2012 11:59:01 -0700 Subject: Don't allow switching to filmstrip in get content intent Bug: 7288252 Change-Id: I247e7c22ed3e90de0222ac82a55ed027c9f252c1 --- src/com/android/gallery3d/app/AlbumPage.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/com/android/gallery3d/app/AlbumPage.java b/src/com/android/gallery3d/app/AlbumPage.java index 6736d350c..9cc56cc50 100644 --- a/src/com/android/gallery3d/app/AlbumPage.java +++ b/src/com/android/gallery3d/app/AlbumPage.java @@ -401,7 +401,9 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster mParentMediaSetString != null; GalleryActionBar actionBar = mActivity.getGalleryActionBar(); actionBar.setDisplayOptions(enableHomeButton, false); - actionBar.enableAlbumModeMenu(GalleryActionBar.ALBUM_GRID_MODE_SELECTED, this); + if (!mGetContent) { + actionBar.enableAlbumModeMenu(GalleryActionBar.ALBUM_GRID_MODE_SELECTED, this); + } // Set the reload bit here to prevent it exit this page in clearLoadingBit(). setLoadingBit(BIT_LOADING_RELOAD); @@ -425,7 +427,9 @@ public class AlbumPage extends ActivityState implements GalleryActionBar.Cluster mAlbumDataAdapter.pause(); mAlbumView.pause(); DetailsHelper.pause(); - mActivity.getGalleryActionBar().disableAlbumModeMenu(true); + if (!mGetContent) { + mActivity.getGalleryActionBar().disableAlbumModeMenu(true); + } if (mSyncTask != null) { mSyncTask.cancel(); -- cgit v1.2.3