Skip to content

Commit

Permalink
The page is now dismissed as soon the user toggles the protection button
Browse files Browse the repository at this point in the history
  • Loading branch information
federicocappelli committed Nov 30, 2023
1 parent 6dc7b1d commit bfc9da4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ class PrivacyDashboardViewController: UIViewController {
}

private func privacyDashboardProtectionSwitchChangeHandler(state: ProtectionState) {

dismiss(animated: true)

guard let domain = privacyDashboardController.privacyInfo?.url.host else { return }

let privacyConfiguration = privacyConfigurationManager.privacyConfig
Expand Down

0 comments on commit bfc9da4

Please sign in to comment.