Bug 1229862 - Enable popular domain suggestions for inline autocomplete r=margaret

This commit is contained in:
Mark Finkle 2016-01-18 14:21:36 -05:00
parent c64f3d25c3
commit 6811339673

View File

@ -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;