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