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: case .push:
if let _ = strongSelf.state.transition, let top = strongSelf.state.top, viewTreeContainsFirstResponder(view: top.value.view) { if let _ = strongSelf.state.transition, let top = strongSelf.state.top, viewTreeContainsFirstResponder(view: top.value.view) {
strongSelf.syncKeyboard(leftEdge: topFrame.minX, transition: transition) strongSelf.syncKeyboard(leftEdge: topFrame.minX, transition: transition)
} else {
if let hasActiveInput = strongSelf.state.top?.value.hasActiveInput, hasActiveInput {
} else { } else {
strongSelf.syncKeyboard(leftEdge: topFrame.minX - bottomFrame.width, transition: transition) strongSelf.syncKeyboard(leftEdge: topFrame.minX - bottomFrame.width, transition: transition)
} }
}
case .pop: case .pop:
strongSelf.syncKeyboard(leftEdge: topFrame.minX, transition: transition) strongSelf.syncKeyboard(leftEdge: topFrame.minX, transition: transition)
} }

View File

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