Эх сурвалжийг харах

Fixed bug when tapping in the 3 points to hide the menu, top bar is also hidden

jabarros 11 жил өмнө
parent
commit
83798b94d6

+ 2 - 4
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);
         }
     }