From f8be4189d46403cfcb9de693179ea5182291d4f3 Mon Sep 17 00:00:00 2001 From: seven332 Date: Mon, 17 Nov 2014 20:57:24 +0800 Subject: [PATCH] update --- src/com/hippo/ehviewer/ui/GalleryActivity.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/com/hippo/ehviewer/ui/GalleryActivity.java b/src/com/hippo/ehviewer/ui/GalleryActivity.java index c3889289c..9f43e614e 100644 --- a/src/com/hippo/ehviewer/ui/GalleryActivity.java +++ b/src/com/hippo/ehviewer/ui/GalleryActivity.java @@ -69,6 +69,8 @@ public class GalleryActivity extends Activity private FullScreenHelper mFullScreenHelper; + private boolean mFirstTime = true; + private final Runnable mFullScreenTask = new Runnable() { @Override public void run() { setFullScreen(true); @@ -84,10 +86,10 @@ public class GalleryActivity extends Activity } void setFullScreen(final boolean fullScreen) { + mFullScreenHelper.setFullScreen(fullScreen); - if ((fullScreen && mFooter.getVisibility() == View.VISIBLE) || - (!fullScreen && mFooter.getVisibility() == View.GONE)) { + if (!mFirstTime) { AlphaAnimation aa = fullScreen ? new AlphaAnimation(1.0f, 0.0f) : new AlphaAnimation(0.0f, 1.0f); aa.setDuration(Constants.ANIMATE_TIME); @@ -110,6 +112,8 @@ public class GalleryActivity extends Activity } }); mFooter.startAnimation(aa); + } else { + mFirstTime = false; } if (!fullScreen)