From 49203907d4d15ba2e63d6a9151c8550bc2388d3b Mon Sep 17 00:00:00 2001 From: Soren Stoutner Date: Wed, 23 Mar 2016 12:48:56 -0700 Subject: [PATCH] User Preeminence: only update the urlTextBox if the user is not typing in it. --- .../com/stoutner/privacybrowser/MainWebViewActivity.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); + } } }); -- 2.45.2