mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-08-02 00:17:02 +00:00
Don't dismiss UIActivityViewController when being deactivated while passcode is active
This commit is contained in:
parent
c68a458fd5
commit
b9dffb89cb
@ -188,8 +188,11 @@ public final class AppLockContextImpl: AppLockContext {
|
|||||||
passcodeController.presentedOverCoveringView = true
|
passcodeController.presentedOverCoveringView = true
|
||||||
strongSelf.passcodeController = passcodeController
|
strongSelf.passcodeController = passcodeController
|
||||||
if let rootViewController = strongSelf.rootController {
|
if let rootViewController = strongSelf.rootController {
|
||||||
|
if let presentedViewController = rootViewController.presentedViewController as? UIActivityViewController {
|
||||||
|
} else {
|
||||||
rootViewController.dismiss(animated: false, completion: nil)
|
rootViewController.dismiss(animated: false, completion: nil)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
strongSelf.window?.present(passcodeController, on: .passcode)
|
strongSelf.window?.present(passcodeController, on: .passcode)
|
||||||
}
|
}
|
||||||
} else if let passcodeController = strongSelf.passcodeController {
|
} else if let passcodeController = strongSelf.passcodeController {
|
||||||
@ -209,9 +212,12 @@ public final class AppLockContextImpl: AppLockContext {
|
|||||||
window.coveringView = coveringView
|
window.coveringView = coveringView
|
||||||
|
|
||||||
if let rootViewController = strongSelf.rootController {
|
if let rootViewController = strongSelf.rootController {
|
||||||
|
if let presentedViewController = rootViewController.presentedViewController as? UIActivityViewController {
|
||||||
|
} else {
|
||||||
rootViewController.dismiss(animated: false, completion: nil)
|
rootViewController.dismiss(animated: false, completion: nil)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
if let coveringView = strongSelf.coveringView {
|
if let coveringView = strongSelf.coveringView {
|
||||||
strongSelf.coveringView = nil
|
strongSelf.coveringView = nil
|
||||||
|
Loading…
x
Reference in New Issue
Block a user