]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
Show the bottom app bar when opening a new tab. https://redmine.stoutner.com/issues/729
authorSoren Stoutner <soren@stoutner.com>
Tue, 8 Jun 2021 23:48:29 +0000 (16:48 -0700)
committerSoren Stoutner <soren@stoutner.com>
Tue, 8 Jun 2021 23:48:29 +0000 (16:48 -0700)
app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java

index e2fb586a4503b7c7ee1f8f4e050fd5ae291a0a88..d2881d7ebe8887c6d299ca1ec9b1b55cdc6b7e44 100644 (file)
@@ -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) {