From: Soren Stoutner Date: Tue, 8 Jun 2021 23:48:29 +0000 (-0700) Subject: Show the bottom app bar when opening a new tab. https://redmine.stoutner.com/issues/729 X-Git-Tag: v3.8.1~6 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=cbf3ebe084eaf5004b74b7f1907b0a1e1a22791f;p=PrivacyBrowserAndroid.git Show the bottom app bar when opening a new tab. https://redmine.stoutner.com/issues/729 --- 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) {