Browse Source

Merge pull request #562 from mtbu/dev

Prevent URL-box resetting on cursor movement
master
Anthony Restaino 8 years ago committed by GitHub
parent
commit
8f7248c176
  1. 6
      app/src/main/java/acr/browser/lightning/activity/BrowserActivity.java

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

@ -547,13 +547,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