Bug 966810 - Don't prompt to enable search suggestions if search suggestions are already enabled. r=liuche

This commit is contained in:
Sebastian Kaspari 2014-02-03 12:35:00 -08:00
Родитель 7de064b2b9
Коммит bc36a7d93f
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -533,9 +533,9 @@ public class BrowserSearch extends HomeFragment
mAdapter.notifyDataSetChanged();
}
// Show suggestions opt-in prompt only if user hasn't been prompted
// and we're not on a private browsing tab.
if (!suggestionsPrompted && mSuggestClient != null) {
// Show suggestions opt-in prompt only if suggestions are not enabled yet,
// user hasn't been prompted and we're not on a private browsing tab.
if (!mSuggestionsEnabled && !suggestionsPrompted && mSuggestClient != null) {
showSuggestionsOptIn();
}
} catch (JSONException e) {