From cbf3ebe084eaf5004b74b7f1907b0a1e1a22791f Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Tue, 8 Jun 2021 16:48:29 -0700 Subject: [PATCH 1/1] Show the bottom app bar when opening a new tab. https://redmine.stoutner.com/issues/729 --- .../privacybrowser/activities/MainWebViewActivity.java | 5 +++++ 1 file changed, 5 insertions(+) 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 e2fb586a..d2881d7e 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java @@ -4805,6 +4805,11 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook // Add the new WebView page. webViewPagerAdapter.addPage(newTabNumber, webViewPager, url, moveToTab); + + // Show the app bar if it is at the bottom of the screen and the new tab is taking focus. + if (bottomAppBar && moveToTab) { + appBarLayout.setVisibility(View.VISIBLE); + } } public void closeTab(View view) { -- 2.43.0