diff options
| author | Chao Zhang <chaoz@codeaurora.org> | 2016-05-18 17:31:21 +0800 |
|---|---|---|
| committer | Linux Build Service Account <lnxbuild@localhost> | 2016-07-06 22:42:12 -0600 |
| commit | 8788884b50a0bdaeac563f5b34f56abe79704fe0 (patch) | |
| tree | 7a9c530158395cfe68575cb64d150864214a51e3 | |
| parent | 1e6342d96838f4d922ac26a901f914a5807f494d (diff) | |
| download | android_packages_apps_Gallery2-8788884b50a0bdaeac563f5b34f56abe79704fe0.tar.gz android_packages_apps_Gallery2-8788884b50a0bdaeac563f5b34f56abe79704fe0.tar.bz2 android_packages_apps_Gallery2-8788884b50a0bdaeac563f5b34f56abe79704fe0.zip | |
Gallery2: fix action bar display abnormal on timeline page.
photo page is finished and return before update action bar,
so action bar is still grey color.
update action bar before finish photo page.
Change-Id: I790279c24ef95eeca5e06bf4825a0fb84503b2a7
CRs-Fixed: 1004554
| -rw-r--r-- | src/com/android/gallery3d/app/PhotoPage.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/com/android/gallery3d/app/PhotoPage.java b/src/com/android/gallery3d/app/PhotoPage.java index 79ecdbfe9..cdbe3e7e4 100644 --- a/src/com/android/gallery3d/app/PhotoPage.java +++ b/src/com/android/gallery3d/app/PhotoPage.java @@ -1588,11 +1588,6 @@ public abstract class PhotoPage extends ActivityState implements @Override protected void onResume() { super.onResume(); - - if (mModel == null) { - mActivity.getStateManager().finishState(this); - return; - } //set full screen to hide the status bar showFullScreen(true); @@ -1616,8 +1611,7 @@ public abstract class PhotoPage extends ActivityState implements if (mMediaSet != null && mIsFromTimelineScreen) { mMediaSet.setClusterKind(GalleryActivity.CLUSTER_ALBUMSET_NO_TITLE); } - mModel.resume(); - mPhotoView.resume(); + mActionBar.setDisplayOptions( ((mSecureAlbum == null) && (mSetPathString != null)), true); mActionBar.addOnMenuVisibilityListener(mMenuVisibilityListener); @@ -1643,6 +1637,12 @@ public abstract class PhotoPage extends ActivityState implements mRecenterCameraOnResume = true; mHandler.sendEmptyMessageDelayed(MSG_UNFREEZE_GLROOT, UNFREEZE_GLROOT_TIMEOUT); + if (mModel == null) { + onBackPressed(); + return; + } + mModel.resume(); + mPhotoView.resume(); } @Override |
