From f235a56ed9f53e49df6048204a7f0e657ced9208 Mon Sep 17 00:00:00 2001 From: mtbu Date: Mon, 24 Apr 2017 20:35:12 +0100 Subject: [PATCH] Prevent URL-box resetting on cursor movement Stop the URL-box from resetting to the current URL (or blank) whenever the user clicks on it to move the cursor --- .../acr/browser/lightning/activity/BrowserActivity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java b/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java index 0400eca..12daa1f 100644 --- a/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java +++ b/app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java @@ -550,10 +550,10 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements return; } String url = currentView.getUrl(); - if (UrlUtils.isSpecialUrl(url)) { - mSearch.setText(""); - } else { - mSearch.setText(url); + if (!UrlUtils.isSpecialUrl(url)) { + if (!mSearch.hasFocus()) { + mSearch.setText(url); + } } } }