Dan Ballard pushed to branch tor-browser-149.0a1-16.0-2 at The Tor Project / Applications / Tor Browser

Commits:

3 changed files:

Changes:

  • mobile/android/fenix/app/src/main/java/org/mozilla/fenix/search/FenixSearchMiddleware.kt
    ... ... @@ -237,12 +237,7 @@ class FenixSearchMiddleware(
    237 237
     
    
    238 238
             store.dispatch(SearchSuggestionsVisibilityUpdated(shouldShowSuggestions))
    
    239 239
     
    
    240
    -        val showPrivatePrompt = with(store.state) {
    
    241
    -            !settings.showSearchSuggestionsInPrivateOnboardingFinished &&
    
    242
    -                    appStore.state.mode.isPrivate &&
    
    243
    -                    !isSearchSuggestionsFeatureEnabled() && !showSearchShortcuts &&
    
    244
    -                    query.isNotBlank() && url != query
    
    245
    -        }
    
    240
    +        val showPrivatePrompt = false
    
    246 241
     
    
    247 242
             store.dispatch(
    
    248 243
                 SearchFragmentAction.AllowSearchSuggestionsInPrivateModePrompt(
    

  • mobile/android/fenix/app/src/main/java/org/mozilla/fenix/search/awesomebar/AwesomeBarComposable.kt
    ... ... @@ -156,7 +156,7 @@ class AwesomeBarComposable(
    156 156
             }
    
    157 157
     
    
    158 158
             if (isSearchActive) {
    
    159
    -            if (state.showSearchSuggestionsHint) {
    
    159
    +            if (false) {
    
    160 160
                     PrivateSuggestionsCard(
    
    161 161
                         onSearchSuggestionsInPrivateModeAllowed = {
    
    162 162
                             activity.settings().shouldShowSearchSuggestionsInPrivate = true
    

  • mobile/android/fenix/app/src/main/java/org/mozilla/fenix/utils/Settings.kt
    ... ... @@ -1613,10 +1613,7 @@ class Settings(
    1613 1613
             default = false,
    
    1614 1614
         )
    
    1615 1615
     
    
    1616
    -    var showSearchSuggestionsInPrivateOnboardingFinished by booleanPreference(
    
    1617
    -        appContext.getPreferenceKey(R.string.pref_key_show_search_suggestions_in_private_onboarding),
    
    1618
    -        default = false,
    
    1619
    -    )
    
    1616
    +    var showSearchSuggestionsInPrivateOnboardingFinished = false
    
    1620 1617
     
    
    1621 1618
         fun incrementVisitedInstallableCount() = pwaInstallableVisitCount.increment()
    
    1622 1619