mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-06-05 21:49:26 +02:00
avoid crashing if a mini keyboards key is pressed
This commit is contained in:
@ -1078,8 +1078,11 @@ class MyKeyboardView @JvmOverloads constructor(context: Context, attrs: Attribut
|
||||
val msg = mHandler!!.obtainMessage(MSG_LONGPRESS, me)
|
||||
mHandler!!.sendMessageDelayed(msg, LONGPRESS_TIMEOUT.toLong())
|
||||
}
|
||||
|
||||
if (mPopupParent.id != R.id.mini_keyboard_view) {
|
||||
showPreview(keyIndex)
|
||||
}
|
||||
}
|
||||
MotionEvent.ACTION_MOVE -> {
|
||||
var continueLongPress = false
|
||||
if (keyIndex != NOT_A_KEY) {
|
||||
|
Reference in New Issue
Block a user