fix: close software keyboard on drawer open
Signed-off-by: Infi <wingit@geist.ga>
This commit is contained in:
parent
044c61b678
commit
2d85f8356b
|
|
@ -196,7 +196,7 @@ fun ChatRouterScreen(topNav: NavController, viewModel: ChatRouterViewModel = hil
|
||||||
snapshotFlow { drawerState.currentValue }
|
snapshotFlow { drawerState.currentValue }
|
||||||
.distinctUntilChanged()
|
.distinctUntilChanged()
|
||||||
.collect { state ->
|
.collect { state ->
|
||||||
if (state == DrawerValue.Closed) {
|
if (state == DrawerValue.Open) {
|
||||||
keyboardController?.hide()
|
keyboardController?.hide()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue