Merge pull request #562 from mtbu/dev

Prevent URL-box resetting on cursor movement
This commit is contained in:
Anthony Restaino 2017-05-07 21:19:05 -04:00 committed by GitHub
commit 8f7248c176

View File

@ -547,10 +547,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);
}
}
}
}