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)
|
navigationController.filterController(self, animated: animated)
|
||||||
} else {
|
} else {
|
||||||
|
self.presentingViewController?.dismiss(animated: false, completion: nil)
|
||||||
assertionFailure()
|
assertionFailure()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -237,11 +237,4 @@ public final class PermissionController : ViewController {
|
|||||||
@objc private func nextPressed() {
|
@objc private func nextPressed() {
|
||||||
self.skip?()
|
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