mirror of
https://github.com/TelegramMessenger/Telegram-iOS.git
synced 2026-07-06 03:33:41 +02:00
PermissionController: use common dismiss() handling
This commit is contained in:
parent
692fa3ba43
commit
b5258b283a
2 changed files with 2 additions and 8 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue