зеркало из https://github.com/mozilla/gecko-dev.git
Bug 816781 - Call notifyDataSetChanged() sooner when getting search engines. r=lucasr
This commit is contained in:
Родитель
ac2408469f
Коммит
cce578b7a6
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче