avoid crashing if a mini keyboards key is pressed

This commit is contained in:
tibbi 2022-01-21 22:38:22 +01:00
parent 738bd98ac0
commit 0363c3cce0

View File

@ -1078,7 +1078,10 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
val msg = mHandler!!.obtainMessage(MSG_LONGPRESS, me)
mHandler!!.sendMessageDelayed(msg, LONGPRESS_TIMEOUT.toLong())
}
showPreview(keyIndex)
if (mPopupParent.id != R.id.mini_keyboard_view) {
showPreview(keyIndex)
}
}
MotionEvent.ACTION_MOVE -> {
var continueLongPress = false