summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--ios/MullvadVPN/SpinnerActivityIndicatorView.swift11
1 files changed, 2 insertions, 9 deletions
diff --git a/ios/MullvadVPN/SpinnerActivityIndicatorView.swift b/ios/MullvadVPN/SpinnerActivityIndicatorView.swift
index f09cd507e7..cd1e1a5532 100644
--- a/ios/MullvadVPN/SpinnerActivityIndicatorView.swift
+++ b/ios/MullvadVPN/SpinnerActivityIndicatorView.swift
@@ -104,15 +104,8 @@ class SpinnerActivityIndicatorView: UIView {
}
private func registerSceneActivationObserver() {
- let name: NSNotification.Name
- var object: Any?
-
- if #available(iOS 13, *) {
- name = UIScene.willEnterForegroundNotification
- object = window?.windowScene
- } else {
- name = UIApplication.willEnterForegroundNotification
- }
+ let name: NSNotification.Name = UIScene.willEnterForegroundNotification
+ var object: Any? = window?.windowScene
unregisterSceneActivationObserver()