]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Fix the app bar and the find on page bar both being displayed on resume. Fixes https...
authorSoren Stoutner <soren@stoutner.com>
Fri, 21 Apr 2017 16:54:20 +0000 (09:54 -0700)
committerSoren Stoutner <soren@stoutner.com>
Fri, 21 Apr 2017 16:54:20 +0000 (09:54 -0700)
app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java

index 0e6832f9a777a1dbf18c3b3ea3ed0a6c751b285e..1a77420d89b673938509a1a75335c53a492498cd 100644 (file)
@@ -2257,8 +2257,10 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation
             // Reset `inFullScreenBrowsingMode` to `false`.
             inFullScreenBrowsingMode = false;
 
-            // Show the `appBar`.
-            appBar.show();
+            // Show the `appBar` if `findOnPageLinearLayout` is not visible.
+            if (findOnPageLinearLayout.getVisibility() == View.GONE) {
+                appBar.show();
+            }
 
             // Show the `BannerAd` in the free flavor.
             if (BuildConfig.FLAVOR.contentEquals("free")) {