Bug 816781 - Call notifyDataSetChanged() sooner when getting search engines. r=lucasr

This commit is contained in:
Brian Nicholson 2012-11-30 15:27:33 -08:00
parent 9553fc7896
commit 07efb6d6cd

View File

@ -562,6 +562,7 @@ public class AllPagesTab extends AwesomeBarTab implements GeckoEventListener {
mSearchEngines.add(new SearchEngine(name, icon));
}
}
mCursorAdapter.notifyDataSetChanged();
// show suggestions opt-in if user hasn't been prompted
if (!suggestionsPrompted && mSuggestClient != null) {
@ -571,7 +572,6 @@ public class AllPagesTab extends AwesomeBarTab implements GeckoEventListener {
Log.e(LOGTAG, "Error getting search engine JSON", e);
}
mCursorAdapter.notifyDataSetChanged();
filterSuggestions(mSearchTerm);
}