X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2FMainWebViewActivity.java;h=69ac5441e4831e920c61ba67aa27b8630e0616fd;hp=25b70df8a098ec271ae6d1d1e1e803997fe1212b;hb=a3f354a396a97e465412dad957b2cd4b757efeb6;hpb=e1867a88b6aa53cc1adf63c95960ee02c81fc2ff diff --git a/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java index 25b70df8..69ac5441 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java @@ -283,7 +283,7 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation // Create the navigation drawer. drawerLayout = (DrawerLayout) findViewById(R.id.drawerLayout); - // The `DrawerTitle` identifies the drawer in accessibility mode. + // `DrawerTitle` identifies the drawer in accessibility mode. drawerLayout.setDrawerTitle(GravityCompat.START, getString(R.string.navigation_drawer)); // Listen for touches on the navigation menu. @@ -314,6 +314,9 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation // Update the back and forward menu items every time the drawer opens. navigationBackMenuItem.setEnabled(mainWebView.canGoBack()); navigationForwardMenuItem.setEnabled(mainWebView.canGoForward()); + + // Hide the keyboard so we can see the navigation menu. `0` indicates no additional flags. + inputMethodManager.hideSoftInputFromWindow(mainWebView.getWindowToken(), 0); } }); @@ -1358,7 +1361,7 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation mainWebView.loadUrl(formattedUrlString, customHeaders); - // Hides the keyboard so we can see the webpage. `0` indicates no additional flags. + // Hide the keyboard so we can see the webpage. `0` indicates no additional flags. inputMethodManager.hideSoftInputFromWindow(mainWebView.getWindowToken(), 0); } @@ -1387,7 +1390,7 @@ public class MainWebViewActivity extends AppCompatActivity implements Navigation Toolbar appBarToolbar = (Toolbar) findViewById(R.id.appBar); appBarToolbar.setVisibility(View.VISIBLE); - // Hides the keyboard so we can see the webpage. `0` indicates no additional flags. + // Hide the keyboard so we can see the webpage. `0` indicates no additional flags. inputMethodManager.hideSoftInputFromWindow(mainWebView.getWindowToken(), 0); }