Skip to content

Commit

Permalink
Bugfix FXIOS-11127 ⁃ [Felt privacy - unified panel] - ETP toggle is d…
Browse files Browse the repository at this point in the history
…isabled when tapping on secure connection and returning to panel (#24264)

FXIOS-11127 #24262 ⁃ [Felt privacy - unified panel] - ETP toggle is disabled when tapping on secure connection and returning to panel
  • Loading branch information
dicarobinho authored Jan 21, 2025
1 parent 5f6e1fe commit aa59eea
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ class TrackingProtectionViewController: UIViewController,
setupNotifications(forObserver: self,
observing: [.DynamicFontChanged])
scrollView.delegate = self
updateViewDetails()
}

override func viewDidLayoutSubviews() {
Expand All @@ -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 {
Expand Down Expand Up @@ -437,9 +439,6 @@ class TrackingProtectionViewController: UIViewController,
title: model.displayTitle,
icon: headerIcon)

updateBlockedTrackersCount()
updateConnectionStatus()

toggleView.setupDetails(isOn: !model.isURLSafelisted())
model.isProtectionEnabled = toggleView.toggleIsOn
updateProtectionViewStatus()
Expand Down

0 comments on commit aa59eea

Please sign in to comment.