From: jabarros Date: Mon, 11 Aug 2014 10:46:29 +0000 (+0200) Subject: Fixed bug when tapping in the 3 points to hide the menu, top bar is also hidden X-Git-Tag: oc-android-1.7.0_signed~221^2~1 X-Git-Url: http://git.linex4red.de/pub/Android/ownCloud.git/commitdiff_plain/83798b94d64cf0028bc9e3b208133ff474450dd2?hp=--cc Fixed bug when tapping in the 3 points to hide the menu, top bar is also hidden --- 83798b94d64cf0028bc9e3b208133ff474450dd2 diff --git a/src/com/owncloud/android/ui/preview/PreviewImageActivity.java b/src/com/owncloud/android/ui/preview/PreviewImageActivity.java index 5b34d0c1..98ce2fc1 100644 --- a/src/com/owncloud/android/ui/preview/PreviewImageActivity.java +++ b/src/com/owncloud/android/ui/preview/PreviewImageActivity.java @@ -126,7 +126,7 @@ ViewPager.OnPageChangeListener, OnRemoteOperationListener { } else { actionBar.hide(); } - } + } }); } @@ -195,9 +195,7 @@ ViewPager.OnPageChangeListener, OnRemoteOperationListener { // When the window loses focus (e.g. the action overflow is shown), // cancel any pending hide action. When the window gains focus, // hide the system UI. - if (hasFocus) { - delayedHide(INITIAL_HIDE_DELAY); - } else { + if (!hasFocus) { mHideSystemUiHandler.removeMessages(0); } }