fix: close software keyboard on drawer open

Signed-off-by: Infi <wingit@geist.ga>
This commit is contained in:
Infi 2023-06-07 20:42:16 +02:00
parent 044c61b678
commit 2d85f8356b
1 changed files with 1 additions and 1 deletions

View File

@ -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()
} }
} }