mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-28 15:23:51 +00:00
Bug 1229862 - Enable popular domain suggestions for inline autocomplete r=margaret
This commit is contained in:
parent
c64f3d25c3
commit
6811339673
@ -485,7 +485,7 @@ public class BrowserSearch extends HomeFragment
|
||||
LinkedHashSet<String> domains = null;
|
||||
private LinkedHashSet<String> getDomains() {
|
||||
if (domains == null) {
|
||||
domains = new LinkedHashSet<String>();
|
||||
domains = new LinkedHashSet<String>(500);
|
||||
BufferedReader buf = null;
|
||||
try {
|
||||
buf = new BufferedReader(new InputStreamReader(getResources().openRawResource(R.raw.topdomains)));
|
||||
@ -511,10 +511,6 @@ public class BrowserSearch extends HomeFragment
|
||||
}
|
||||
|
||||
private String searchDomains(String search) {
|
||||
if (AppConstants.NIGHTLY_BUILD == false) {
|
||||
return null;
|
||||
}
|
||||
|
||||
for (String domain : getDomains()) {
|
||||
if (domain.startsWith(search)) {
|
||||
return domain;
|
||||
|
Loading…
Reference in New Issue
Block a user