From aa59eea88eb7b895176c8b85f547cdf49dc0d0b2 Mon Sep 17 00:00:00 2001 From: dicarobinho <61138287+dicarobinho@users.noreply.github.com> Date: Tue, 21 Jan 2025 16:57:15 +0200 Subject: [PATCH] =?UTF-8?q?Bugfix=20FXIOS-11127=20=E2=81=83=20[Felt=20priv?= =?UTF-8?q?acy=20-=20unified=20panel]=20-=20ETP=20toggle=20is=20disabled?= =?UTF-8?q?=20when=20tapping=20on=20secure=20connection=20and=20returning?= =?UTF-8?q?=20to=20panel=20(#24264)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FXIOS-11127 #24262 ⁃ [Felt privacy - unified panel] - ETP toggle is disabled when tapping on secure connection and returning to panel --- .../TrackingProtectionViewController.swift | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/firefox-ios/Client/Frontend/TrackingProtection/TrackingProtectionViewController.swift b/firefox-ios/Client/Frontend/TrackingProtection/TrackingProtectionViewController.swift index a7a1f31c2712..fbb0c9aaf084 100644 --- a/firefox-ios/Client/Frontend/TrackingProtection/TrackingProtectionViewController.swift +++ b/firefox-ios/Client/Frontend/TrackingProtection/TrackingProtectionViewController.swift @@ -147,6 +147,7 @@ class TrackingProtectionViewController: UIViewController, setupNotifications(forObserver: self, observing: [.DynamicFontChanged]) scrollView.delegate = self + updateViewDetails() } override func viewDidLayoutSubviews() { @@ -160,7 +161,8 @@ class TrackingProtectionViewController: UIViewController, override func viewWillAppear(_ animated: Bool) { super.viewWillAppear(animated) - updateViewDetails() + updateBlockedTrackersCount() + updateConnectionStatus() applyTheme() getCertificates(for: model.url) { [weak self] certificates in if let certificates { @@ -437,9 +439,6 @@ class TrackingProtectionViewController: UIViewController, title: model.displayTitle, icon: headerIcon) - updateBlockedTrackersCount() - updateConnectionStatus() - toggleView.setupDetails(isOn: !model.isURLSafelisted()) model.isProtectionEnabled = toggleView.toggleIsOn updateProtectionViewStatus()