mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Disable interactive modal dismiss in image pickers
This commit is contained in:
parent
72c72d283d
commit
16f3cd2a00
@ -467,6 +467,11 @@ final class NavigationModalContainer: ASDisplayNode, UIScrollViewDelegate, UIGes
|
||||
}
|
||||
currentParent = currentParent?.superview
|
||||
}
|
||||
if let controller = self.container.controllers.last {
|
||||
if controller.view.disablesInteractiveModalDismiss {
|
||||
enableScrolling = false
|
||||
}
|
||||
}
|
||||
self.isInteractiveDimissEnabled = enableScrolling
|
||||
if let layout = self.validLayout {
|
||||
if layout.inputHeight != nil && layout.inputHeight != 0.0 {
|
||||
|
@ -18,6 +18,12 @@ private final class LegacyImagePickerController: LegacyController, TGLegacyCamer
|
||||
fatalError("init(coder:) has not been implemented")
|
||||
}
|
||||
|
||||
override func viewDidLoad() {
|
||||
super.viewDidLoad()
|
||||
|
||||
self.view.disablesInteractiveModalDismiss = true
|
||||
}
|
||||
|
||||
func legacyCameraControllerCompletedWithNoResult() {
|
||||
self.completion(nil)
|
||||
}
|
||||
|
@ -5705,6 +5705,7 @@ public final class ChatControllerImpl: TelegramBaseController, ChatController, G
|
||||
legacyController.statusBar.statusBarStyle = strongSelf.presentationData.theme.rootController.statusBarStyle.style
|
||||
legacyController.controllerLoaded = { [weak legacyController] in
|
||||
legacyController?.view.disablesInteractiveTransitionGestureRecognizer = true
|
||||
legacyController?.view.disablesInteractiveModalDismiss = true
|
||||
}
|
||||
let controller = generator(legacyController.context)
|
||||
legacyController.bind(controller: controller)
|
||||
|
Loading…
x
Reference in New Issue
Block a user