]> gitweb.stoutner.com Git - PrivacyBrowserAndroid.git/commitdiff
User Preeminence: only update the urlTextBox if the user is not typing in it.
authorSoren Stoutner <soren@stoutner.com>
Wed, 23 Mar 2016 19:48:56 +0000 (12:48 -0700)
committerSoren Stoutner <soren@stoutner.com>
Wed, 23 Mar 2016 19:48:56 +0000 (12:48 -0700)
app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java

index c9130db8259f7d36867b4620f8b15454fa01c879..64dd8dbf31eddfafc785ef3c42bea88e50acb811 100644 (file)
@@ -167,7 +167,11 @@ public class MainWebViewActivity extends AppCompatActivity implements CreateHome
             @Override
             public void onPageFinished(WebView view, String url) {
                 formattedUrlString = url;
-                urlTextBox.setText(formattedUrlString);
+
+                // Only update urlTextBox if the user is not typing in it.
+                if (!urlTextBox.hasFocus()) {
+                    urlTextBox.setText(formattedUrlString);
+                }
             }
         });