Disable saving keyboard state on hide

This commit is contained in:
Aleksandras Kostarevas 2024-07-06 21:35:08 +03:00
parent 91b1b28e1c
commit 3d6963bbda

View File

@ -368,17 +368,6 @@ class LatinIME : InputMethodService(), LifecycleOwner, ViewModelStoreOwner, Save
// shown, but resized to 0 if an action window is open
@Composable
internal fun LegacyKeyboardView(hidden: Boolean) {
LaunchedEffect(hidden) {
if(hidden) {
latinIMELegacy.mKeyboardSwitcher.saveKeyboardState()
} else {
if(pendingRecreateKeyboard) {
pendingRecreateKeyboard = false
recreateKeyboard()
}
}
}
val modifier = if(hidden) {
Modifier
.clipToBounds()