зеркало из https://github.com/mozilla/gecko-dev.git
Bug 966810 - Don't prompt to enable search suggestions if search suggestions are already enabled. r=liuche
This commit is contained in:
Родитель
7de064b2b9
Коммит
bc36a7d93f
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче