From 83798b94d64cf0028bc9e3b208133ff474450dd2 Mon Sep 17 00:00:00 2001 From: jabarros Date: Mon, 11 Aug 2014 12:46:29 +0200 Subject: [PATCH] Fixed bug when tapping in the 3 points to hide the menu, top bar is also hidden --- src/com/owncloud/android/ui/preview/PreviewImageActivity.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) 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); } } -- 2.11.0