android: returned lost focus in text field (#2625)

This commit is contained in:
Stanislav Dmitrenko
2023-06-28 15:49:01 +03:00
committed by GitHub
parent 3f93397031
commit fccd4f7ec4

View File

@@ -395,7 +395,7 @@ private fun NativeKeyboard(
it.setTextColor(textColor.toArgb())
it.textSize = textStyle.value.fontSize.value
DrawableCompat.setTint(it.background, tintColor.toArgb())
it.isFocusable = composeState.value.preview !is ComposePreview.VoicePreview && !cs.inProgress
it.isFocusable = composeState.value.preview !is ComposePreview.VoicePreview
it.isFocusableInTouchMode = it.isFocusable
if (cs.message != it.text.toString()) {
it.setText(cs.message)