mirror of
https://github.com/SimpleMobileTools/Simple-Keyboard.git
synced 2025-03-18 04:20:21 +01:00
avoid crashing if a mini keyboards key is pressed
This commit is contained in:
parent
738bd98ac0
commit
0363c3cce0
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user