X-Git-Url: https://gitweb.stoutner.com/?p=PrivacyBrowserAndroid.git;a=blobdiff_plain;f=app%2Fsrc%2Fmain%2Fjava%2Fcom%2Fstoutner%2Fprivacybrowser%2Factivities%2FMainWebViewActivity.java;h=971eaad1fa5c36082d82d5878f5faaf459e16568;hp=c5b8b09fc765fcb6a210b811deeb03000eccf8d1;hb=23de13bf1815ffc666157997ca3bff6930e1762c;hpb=8e7fcbf6d84cd84ae3fa1fbb65e8be804903a0c3 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 c5b8b09f..971eaad1 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/activities/MainWebViewActivity.java @@ -4824,6 +4824,9 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateBook } private void addNewTab(String url, boolean moveToTab) { + // Clear the focus from the URL edit text, so that it will be populated with the information from the new tab. + urlEditText.clearFocus(); + // Get the new page number. The page numbers are 0 indexed, so the new page number will match the current count. int newTabNumber = tabLayout.getTabCount();