From be4a31ef14253a2761b7eac4e9e884e426e956a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Saleniuk?= Date: Wed, 8 Jan 2025 15:29:40 +0100 Subject: [PATCH] fix: reappearing keyboard [WPB-10889] --- .../android/ui/home/messagecomposer/MessageComposerInput.kt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/MessageComposerInput.kt b/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/MessageComposerInput.kt index 41ed3ab5586..edb928535e3 100644 --- a/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/MessageComposerInput.kt +++ b/app/src/main/kotlin/com/wire/android/ui/home/messagecomposer/MessageComposerInput.kt @@ -290,6 +290,7 @@ private fun MessageComposerTextInput( } else { isReadOnly = true keyboardController?.hide() + focusRequester.freeFocus() } } @@ -312,9 +313,7 @@ private fun MessageComposerTextInput( modifier = modifier .focusRequester(focusRequester) .onFocusChanged { focusState -> - if (focusState.isFocused) { - onFocusChanged(focusState.isFocused) - } + onFocusChanged(focusState.isFocused) } .onPreInterceptKeyBeforeSoftKeyboard { event -> if (event.key.nativeKeyCode == android.view.KeyEvent.KEYCODE_BACK) {