diff options
| author | Bobby Georgescu <georgescu@google.com> | 2012-10-18 15:36:03 -0700 |
|---|---|---|
| committer | Bobby Georgescu <georgescu@google.com> | 2012-10-18 17:00:44 -0700 |
| commit | c29588d7cc9fc3d2eef61af433fc0a8859e16ef4 (patch) | |
| tree | 782fd91ee864d6fc0f83befe4269ecb596df001a /src | |
| parent | 0745eba4898419aad2b6e79be137a2a1edf4d0fc (diff) | |
| download | android_packages_apps_Gallery2-c29588d7cc9fc3d2eef61af433fc0a8859e16ef4.tar.gz android_packages_apps_Gallery2-c29588d7cc9fc3d2eef61af433fc0a8859e16ef4.tar.bz2 android_packages_apps_Gallery2-c29588d7cc9fc3d2eef61af433fc0a8859e16ef4.zip | |
Do not show "Filmstrip view" text when photo is fullscreen
Bug: 243374
Change-Id: I2d0a1d56e6c2d833d9d75041b30afcb988635c49
Diffstat (limited to 'src')
| -rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index f900c408f..c8eaaca4a 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -1309,6 +1309,14 @@ public class PhotoPage extends ActivityState implements @Override public void onFilmModeChanged(boolean enabled) { refreshBottomControlsWhenReady(); + if (mShowSpinner) { + if (enabled) { + mActionBar.enableAlbumModeMenu( + GalleryActionBar.ALBUM_FILMSTRIP_MODE_SELECTED, this); + } else { + mActionBar.disableAlbumModeMenu(true); + } + } if (enabled) { mHandler.removeMessages(MSG_HIDE_BARS); } else { @@ -1369,7 +1377,7 @@ public class PhotoPage extends ActivityState implements ((mSecureAlbum == null) && (mSetPathString != null)), false); mActionBar.addOnMenuVisibilityListener(mMenuVisibilityListener); refreshBottomControlsWhenReady(); - if (mShowSpinner) { + if (mShowSpinner && mPhotoView.getFilmMode()) { mActionBar.enableAlbumModeMenu( GalleryActionBar.ALBUM_FILMSTRIP_MODE_SELECTED, this); } |
