From 8bd334e91945bc15bd514b50824028b2129646df Mon Sep 17 00:00:00 2001 From: Aleksandras Kostarevas Date: Sat, 20 Jul 2024 23:34:13 +0300 Subject: [PATCH] Fix bug in some apps hiding keyboard when input is modal --- java/src/org/futo/inputmethod/latin/LatinIME.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/src/org/futo/inputmethod/latin/LatinIME.kt b/java/src/org/futo/inputmethod/latin/LatinIME.kt index 9550de956..a7c211a49 100644 --- a/java/src/org/futo/inputmethod/latin/LatinIME.kt +++ b/java/src/org/futo/inputmethod/latin/LatinIME.kt @@ -558,10 +558,10 @@ class LatinIME : InputMethodService(), LifecycleOwner, ViewModelStoreOwner, Save return } - val visibleTopY = if(isInputModal) { 0 } else { inputHeight - touchableHeight } + val visibleTopY = inputHeight - touchableHeight val touchLeft = 0 - val touchTop = visibleTopY + val touchTop = if(isInputModal) { 0 } else { visibleTopY } val touchRight = composeView.width val touchBottom = inputHeight