mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 03:20:48 +00:00
Fix topPresentationContext overlay focus handling
This commit is contained in:
parent
79ac746282
commit
5ad48ef7d4
@ -201,6 +201,7 @@ public final class AppLockContextImpl: AppLockContext {
|
||||
}
|
||||
}
|
||||
passcodeController.presentedOverCoveringView = true
|
||||
passcodeController.isOpaqueWhenInOverlay = true
|
||||
strongSelf.passcodeController = passcodeController
|
||||
if let rootViewController = strongSelf.rootController {
|
||||
if let presentedViewController = rootViewController.presentedViewController as? UIActivityViewController {
|
||||
|
@ -337,8 +337,17 @@ public class Window1 {
|
||||
self?.isInteractionBlocked = value
|
||||
}
|
||||
|
||||
let updateOpaqueOverlays: () -> Void = { [weak self] in
|
||||
guard let strongSelf = self else {
|
||||
return
|
||||
}
|
||||
strongSelf._rootController?.displayNode.accessibilityElementsHidden = strongSelf.presentationContext.hasOpaqueOverlay || strongSelf.topPresentationContext.hasOpaqueOverlay
|
||||
}
|
||||
self.presentationContext.updateHasOpaqueOverlay = { [weak self] value in
|
||||
self?._rootController?.displayNode.accessibilityElementsHidden = value
|
||||
updateOpaqueOverlays()
|
||||
}
|
||||
self.topPresentationContext.updateHasOpaqueOverlay = { [weak self] value in
|
||||
updateOpaqueOverlays()
|
||||
}
|
||||
|
||||
self.hostView.present = { [weak self] controller, level, blockInteraction, completion in
|
||||
|
Loading…
x
Reference in New Issue
Block a user