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
Родитель ac2408469f
Коммит cce578b7a6
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

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