Commit 72fbc36c authored by clairehurst's avatar clairehurst 🌱 Committed by Pier Angelo Vendrame
Browse files

TB 44653 [android]: Disable 'Allow search suggestions in private sessions'...

TB 44653 [android]: Disable 'Allow search suggestions in private sessions' prompt presented in RR 148 android
parent 3499cc35
Loading
Loading
Loading
Loading
+1 −6
Original line number Diff line number Diff line
@@ -246,12 +246,7 @@ class FenixSearchMiddleware(

        store.dispatch(SearchSuggestionsVisibilityUpdated(shouldShowSuggestions))

        val showPrivatePrompt = with(store.state) {
            !settings.showSearchSuggestionsInPrivateOnboardingFinished &&
                    browsingModeManager.mode.isPrivate &&
                    !isSearchSuggestionsFeatureEnabled() &&
                    query.isNotBlank() && url != query
        }
        val showPrivatePrompt = false

        store.dispatch(
            SearchFragmentAction.AllowSearchSuggestionsInPrivateModePrompt(
+1 −1
Original line number Diff line number Diff line
@@ -159,7 +159,7 @@ class AwesomeBarComposable(
        }

        if (isSearchActive) {
            if (state.showSearchSuggestionsHint) {
            if (false) {
                PrivateSuggestionsCard(
                    onSearchSuggestionsInPrivateModeAllowed = {
                        activity.settings().shouldShowSearchSuggestionsInPrivate = true
+1 −4
Original line number Diff line number Diff line
@@ -1732,10 +1732,7 @@ class Settings(
        default = false,
    )

    var showSearchSuggestionsInPrivateOnboardingFinished by booleanPreference(
        appContext.getPreferenceKey(R.string.pref_key_show_search_suggestions_in_private_onboarding),
        default = false,
    )
    var showSearchSuggestionsInPrivateOnboardingFinished = false

    fun incrementVisitedInstallableCount() = pwaInstallableVisitCount.increment()