From c2ca2b1450298daa057cf0a8db5b10fdcc2962e9 Mon Sep 17 00:00:00 2001 From: Arturo Mejia Date: Thu, 30 Nov 2023 12:16:51 -0500 Subject: [PATCH] Bug 1866801 - Disable the CBH unsupported site submission. (cherry picked from commit 557a5ed850f5efa6097bf6ef92c4b0f2a08cf5bc) --- .../settings/quicksettings/protections/ProtectionsView.kt | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/settings/quicksettings/protections/ProtectionsView.kt b/app/src/main/java/org/mozilla/fenix/settings/quicksettings/protections/ProtectionsView.kt index dbb899beb..533a7d906 100644 --- a/app/src/main/java/org/mozilla/fenix/settings/quicksettings/protections/ProtectionsView.kt +++ b/app/src/main/java/org/mozilla/fenix/settings/quicksettings/protections/ProtectionsView.kt @@ -33,6 +33,8 @@ import org.mozilla.fenix.compose.annotation.LightDarkPreview import org.mozilla.fenix.databinding.QuicksettingsProtectionsPanelBinding import org.mozilla.fenix.theme.FirefoxTheme import org.mozilla.fenix.trackingprotection.CookieBannerUIMode +import org.mozilla.fenix.trackingprotection.CookieBannerUIMode.REQUEST_UNSUPPORTED_SITE_SUBMITTED +import org.mozilla.fenix.trackingprotection.CookieBannerUIMode.SITE_NOT_SUPPORTED import org.mozilla.fenix.trackingprotection.ProtectionsState import org.mozilla.fenix.utils.Settings @@ -108,7 +110,11 @@ class ProtectionsView( binding.cookieBannerItem.apply { setContent { FirefoxTheme { - if (cookieBannerMode == CookieBannerUIMode.REQUEST_UNSUPPORTED_SITE_SUBMITTED) { + if (cookieBannerMode in listOf( + REQUEST_UNSUPPORTED_SITE_SUBMITTED, + SITE_NOT_SUPPORTED, + ) + ) { CookieBannerItem( label = label, cookieBannerUIMode = cookieBannerMode,