mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-02 18:08:58 +00:00
Bug 789947 - Setting up search engines creates an extra top sites filter query. r=bnicholson
This commit is contained in:
parent
64ae8fd282
commit
a4c6f841ee
@ -125,6 +125,10 @@ public class AllPagesTab extends AwesomeBarTab implements GeckoEventListener {
|
||||
AwesomeBarCursorAdapter adapter = getCursorAdapter();
|
||||
adapter.filter(searchTerm);
|
||||
|
||||
filterSuggestions(searchTerm);
|
||||
}
|
||||
|
||||
private void filterSuggestions(String searchTerm) {
|
||||
// cancel previous query
|
||||
if (mSuggestTask != null) {
|
||||
mSuggestTask.cancel(true);
|
||||
@ -477,7 +481,7 @@ public class AllPagesTab extends AwesomeBarTab implements GeckoEventListener {
|
||||
Log.e(LOGTAG, "Error getting search engine JSON", e);
|
||||
}
|
||||
|
||||
filter(mSearchTerm);
|
||||
filterSuggestions(mSearchTerm);
|
||||
}
|
||||
|
||||
private Drawable getDrawableFromDataURI(String dataURI) {
|
||||
|
Loading…
Reference in New Issue
Block a user