close clipboard manager if keyboard visibility changes

This commit is contained in:
tibbi 2022-01-29 18:35:53 +01:00
parent f4112aa797
commit 34388b634f
1 changed files with 2 additions and 0 deletions

View File

@ -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