From: Soren Stoutner Date: Wed, 23 Mar 2016 19:48:56 +0000 (-0700) Subject: User Preeminence: only update the urlTextBox if the user is not typing in it. X-Git-Tag: v1.2~1 X-Git-Url: https://gitweb.stoutner.com/?a=commitdiff_plain;h=49203907d4d15ba2e63d6a9151c8550bc2388d3b;p=PrivacyBrowserAndroid.git User Preeminence: only update the urlTextBox if the user is not typing in it. --- diff --git a/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java b/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java index c9130db8..64dd8dbf 100644 --- a/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java +++ b/app/src/main/java/com/stoutner/privacybrowser/MainWebViewActivity.java @@ -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); + } } });