Browse Source

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
master
mtbu 8 years ago
parent
commit
f235a56ed9
  1. 6
      app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

6
app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

@ -550,13 +550,13 @@ public abstract class BrowserActivity extends ThemableBrowserActivity implements
return; return;
} }
String url = currentView.getUrl(); String url = currentView.getUrl();
if (UrlUtils.isSpecialUrl(url)) { if (!UrlUtils.isSpecialUrl(url)) {
mSearch.setText(""); if (!mSearch.hasFocus()) {
} else {
mSearch.setText(url); mSearch.setText(url);
} }
} }
} }
}
private class DrawerLocker implements DrawerListener { private class DrawerLocker implements DrawerListener {

Loading…
Cancel
Save