Fixed bug when tapping in the 3 points to hide the menu, top bar is also hidden
authorjabarros <jabarros@solidgear.es>
Mon, 11 Aug 2014 10:46:29 +0000 (12:46 +0200)
committerjabarros <jabarros@solidgear.es>
Mon, 11 Aug 2014 10:46:29 +0000 (12:46 +0200)
src/com/owncloud/android/ui/preview/PreviewImageActivity.java

index 5b34d0c..98ce2fc 100644 (file)
@@ -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);
         }
     }