summaryrefslogtreecommitdiffstats
path: root/src/com/android/gallery3d/app/SlideshowPage.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/com/android/gallery3d/app/SlideshowPage.java')
-rw-r--r--src/com/android/gallery3d/app/SlideshowPage.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/com/android/gallery3d/app/SlideshowPage.java b/src/com/android/gallery3d/app/SlideshowPage.java
index f1af8629c..ab23d4646 100644
--- a/src/com/android/gallery3d/app/SlideshowPage.java
+++ b/src/com/android/gallery3d/app/SlideshowPage.java
@@ -175,7 +175,9 @@ public class SlideshowPage extends ActivityState {
@Override
public void onPause() {
super.onPause();
- ((GalleryActivity) mActivity).toggleNavBar(true);
+ if (mActivity.getStateManager().getStateCount() <= 1) {
+ ((GalleryActivity) mActivity).toggleNavBar(true);
+ }
mIsActive = false;
mModel.pause();
mSlideshowView.release();