mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
Don't dismiss UIActivityViewController when being deactivated while passcode is active
This commit is contained in:
parent
c68a458fd5
commit
b9dffb89cb
1 changed files with 8 additions and 2 deletions
|
|
@ -188,7 +188,10 @@ public final class AppLockContextImpl: AppLockContext {
|
|||
passcodeController.presentedOverCoveringView = true
|
||||
strongSelf.passcodeController = passcodeController
|
||||
if let rootViewController = strongSelf.rootController {
|
||||
rootViewController.dismiss(animated: false, completion: nil)
|
||||
if let presentedViewController = rootViewController.presentedViewController as? UIActivityViewController {
|
||||
} else {
|
||||
rootViewController.dismiss(animated: false, completion: nil)
|
||||
}
|
||||
}
|
||||
strongSelf.window?.present(passcodeController, on: .passcode)
|
||||
}
|
||||
|
|
@ -209,7 +212,10 @@ public final class AppLockContextImpl: AppLockContext {
|
|||
window.coveringView = coveringView
|
||||
|
||||
if let rootViewController = strongSelf.rootController {
|
||||
rootViewController.dismiss(animated: false, completion: nil)
|
||||
if let presentedViewController = rootViewController.presentedViewController as? UIActivityViewController {
|
||||
} else {
|
||||
rootViewController.dismiss(animated: false, completion: nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue