Various fixes

This commit is contained in:
Ilya Laktyushin 2022-09-05 19:06:41 +02:00
parent e4b8c40133
commit d7abd64ac4
3 changed files with 21 additions and 20 deletions

View File

@ -469,9 +469,12 @@ public final class NavigationContainer: ASDisplayNode, UIGestureRecognizerDelega
case .push:
if let _ = strongSelf.state.transition, let top = strongSelf.state.top, viewTreeContainsFirstResponder(view: top.value.view) {
strongSelf.syncKeyboard(leftEdge: topFrame.minX, transition: transition)
} else {
if let hasActiveInput = strongSelf.state.top?.value.hasActiveInput, hasActiveInput {
} else {
strongSelf.syncKeyboard(leftEdge: topFrame.minX - bottomFrame.width, transition: transition)
}
}
case .pop:
strongSelf.syncKeyboard(leftEdge: topFrame.minX, transition: transition)
}

View File

@ -283,8 +283,6 @@ public final class MediaGroupsScreen: ViewController {
func updatePresentationData(_ presentationData: PresentationData) {
self.presentationData = presentationData
self.backgroundColor = presentationData.theme.list.plainBackgroundColor
}
private func enqueueTransaction(_ transaction: MediaGroupsTransition) {