From e48f4376e2d4c86f76c60dc167df052170f2e5d0 Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Fri, 21 Apr 2017 09:54:20 -0700 Subject: [PATCH] Fix the app bar and the find on page bar both being displayed on resume. Fixes https://redmine.stoutner.com/issues/121. --- .../privacybrowser/activities/MainWebViewActivity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java index 0e6832f9..1a77420d 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java @@ -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")) { -- 2.45.2