From 34388b634ff7422377b857336b5153ba4550e5e6 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sat, 29 Jan 2022 18:35:53 +0100 Subject: [PATCH] close clipboard manager if keyboard visibility changes --- .../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 97c7c1c..5127b88 100644 --- a/app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt +++ b/app/src/main/kotlin/com/simplemobiletools/keyboard/views/MyKeyboardView.kt @@ -260,6 +260,8 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut override fun onVisibilityChanged(changedView: View, visibility: Int) { super.onVisibilityChanged(changedView, visibility) + closeClipboardManager() + if (visibility == VISIBLE) { mTextColor = context.config.textColor mBackgroundColor = context.config.backgroundColor