mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Disable saving keyboard state on hide
This commit is contained in:
parent
91b1b28e1c
commit
3d6963bbda
@ -368,17 +368,6 @@ class LatinIME : InputMethodService(), LifecycleOwner, ViewModelStoreOwner, Save
|
|||||||
// shown, but resized to 0 if an action window is open
|
// shown, but resized to 0 if an action window is open
|
||||||
@Composable
|
@Composable
|
||||||
internal fun LegacyKeyboardView(hidden: Boolean) {
|
internal fun LegacyKeyboardView(hidden: Boolean) {
|
||||||
LaunchedEffect(hidden) {
|
|
||||||
if(hidden) {
|
|
||||||
latinIMELegacy.mKeyboardSwitcher.saveKeyboardState()
|
|
||||||
} else {
|
|
||||||
if(pendingRecreateKeyboard) {
|
|
||||||
pendingRecreateKeyboard = false
|
|
||||||
recreateKeyboard()
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
val modifier = if(hidden) {
|
val modifier = if(hidden) {
|
||||||
Modifier
|
Modifier
|
||||||
.clipToBounds()
|
.clipToBounds()
|
||||||
|
Loading…
Reference in New Issue
Block a user