tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit dc169612817b7691ae238c83e54a380f391e7307
parent 4fe8edd4e94f26b4c2c23b28a403d01b4d7aa6ff
Author: rmalicdem <rmalicdem@mozilla.com>
Date:   Tue, 23 Dec 2025 22:37:43 +0000

Bug 2007329 - Only disable ETP button if global tracking is disabled r=android-reviewers,Roger

Differential Revision: https://phabricator.services.mozilla.com/D277471

Diffstat:
Mmobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/trustpanel/ui/ProtectionPanel.kt | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/trustpanel/ui/ProtectionPanel.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/trustpanel/ui/ProtectionPanel.kt @@ -113,8 +113,8 @@ internal fun ProtectionPanel( if (!isLocalPdf) { MenuBadgeItem( label = stringResource(id = R.string.protection_panel_etp_toggle_label), - checked = isTrackingProtectionEnabled && isGlobalTrackingProtectionEnabled, - description = if (isTrackingProtectionEnabled && isGlobalTrackingProtectionEnabled) { + checked = isSiteProtectionEnabled, + description = if (isSiteProtectionEnabled) { stringResource(id = R.string.protection_panel_etp_toggle_enabled_description_2) } else { stringResource(id = R.string.protection_panel_etp_toggle_disabled_description_2) @@ -124,7 +124,7 @@ internal fun ProtectionPanel( } else { stringResource(id = R.string.protection_panel_etp_toggle_off) }, - enabled = (isSiteProtectionEnabled), + enabled = isGlobalTrackingProtectionEnabled, onClick = onTrackingProtectionToggleClick, )