Commit 1b2e8abb by Demid Merzlyakov

Fix for Privacy Notice closing when the screen goes dark.

parent fc449841
......@@ -31,7 +31,13 @@ class MenuViewController: UIViewController {
@objc
private func appWillEnterBackgroundHandler() {
self.presentedViewController?.dismiss(animated: false, completion: nil)
guard let presentedViewController = presentedViewController else {
return
}
guard presentedViewController is SFSafariViewController else {
return
}
presentedViewController.dismiss(animated: false, completion: nil)
}
deinit {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment