From 50b493a41c0c819a8d1955d550a8f8b327575a33 Mon Sep 17 00:00:00 2001 From: iorgamgabriel Date: Mon, 14 Aug 2023 15:40:28 +0300 Subject: [PATCH] Bug 1845020 - The hint for search suggestions in private mode should be disabled if search suggestions in normal browsing are disabled. --- .../main/java/org/mozilla/fenix/search/SearchDialogController.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/org/mozilla/fenix/search/SearchDialogController.kt b/app/src/main/java/org/mozilla/fenix/search/SearchDialogController.kt index 89018d3789..aee0679580 100644 --- a/app/src/main/java/org/mozilla/fenix/search/SearchDialogController.kt +++ b/app/src/main/java/org/mozilla/fenix/search/SearchDialogController.kt @@ -157,6 +157,7 @@ class SearchDialogController( SearchFragmentAction.AllowSearchSuggestionsInPrivateModePrompt( text.isNotEmpty() && activity.browsingModeManager.mode.isPrivate && + settings.shouldShowSearchSuggestions && !settings.shouldShowSearchSuggestionsInPrivate && !settings.showSearchSuggestionsInPrivateOnboardingFinished, ),