From 91b3557c2d6c9f767138fef7565d87c81c0d805c Mon Sep 17 00:00:00 2001 From: tibbi Date: Tue, 11 Jan 2022 15:44:31 +0100 Subject: [PATCH] do not show a popup if long pressed and moved at Delete etc --- .../com/simplemobiletools/keyboard/views/MyKeyboardView.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt b/app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt index 537c1db..05707b4 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt @@ -871,6 +871,8 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut previewPopup.showAtLocation(mPopupParent, Gravity.NO_GRAVITY, mPopupPreviewX, mPopupPreviewY) } mPreviewText!!.visibility = VISIBLE + } else { + previewPopup.dismiss() } }