mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
Don't dismiss payment controller with Apple Pay
This commit is contained in:
parent
f3eaa9fecd
commit
af9a417798
@ -11,6 +11,7 @@ import TelegramUIPreferences
|
||||
import ImageBlur
|
||||
import FastBlur
|
||||
import AppLockState
|
||||
import PassKit
|
||||
|
||||
private func isLocked(passcodeSettings: PresentationPasscodeSettings, state: LockState, isApplicationActive: Bool) -> Bool {
|
||||
if state.isManuallyLocked {
|
||||
@ -204,6 +205,7 @@ public final class AppLockContextImpl: AppLockContext {
|
||||
strongSelf.passcodeController = passcodeController
|
||||
if let rootViewController = strongSelf.rootController {
|
||||
if let _ = rootViewController.presentedViewController as? UIActivityViewController {
|
||||
} else if let _ = rootViewController.presentedViewController as? PKPaymentAuthorizationViewController {
|
||||
} else {
|
||||
rootViewController.dismiss(animated: false, completion: nil)
|
||||
}
|
||||
@ -228,6 +230,7 @@ public final class AppLockContextImpl: AppLockContext {
|
||||
|
||||
if let rootViewController = strongSelf.rootController {
|
||||
if let _ = rootViewController.presentedViewController as? UIActivityViewController {
|
||||
} else if let _ = rootViewController.presentedViewController as? PKPaymentAuthorizationViewController {
|
||||
} else {
|
||||
rootViewController.dismiss(animated: false, completion: nil)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user