mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-06-16 05:55:20 +00:00
PermissionController: use common dismiss() handling
This commit is contained in:
parent
692fa3ba43
commit
b5258b283a
@ -455,6 +455,7 @@ public enum ViewControllerNavigationPresentation {
|
||||
}
|
||||
navigationController.filterController(self, animated: animated)
|
||||
} else {
|
||||
self.presentingViewController?.dismiss(animated: false, completion: nil)
|
||||
assertionFailure()
|
||||
}
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ import TelegramPresentationData
|
||||
import DeviceAccess
|
||||
import AccountContext
|
||||
|
||||
public final class PermissionController : ViewController {
|
||||
public final class PermissionController: ViewController {
|
||||
private let context: AccountContext
|
||||
private let splitTest: PermissionUISplitTest?
|
||||
private var state: PermissionControllerContent?
|
||||
@ -237,11 +237,4 @@ public final class PermissionController : ViewController {
|
||||
@objc private func nextPressed() {
|
||||
self.skip?()
|
||||
}
|
||||
|
||||
override public func dismiss(completion: (() -> Void)? = nil) {
|
||||
self.controllerNode.animateOut(completion: { [weak self] in
|
||||
self?.presentingViewController?.dismiss(animated: false, completion: nil)
|
||||
completion?()
|
||||
})
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user