Bug 789947 - Setting up search engines creates an extra top sites filter query. r=bnicholson

This commit is contained in:
Margaret Leibovic 2012-09-13 13:00:03 +02:00
parent 64ae8fd282
commit a4c6f841ee

View File

@ -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) {