mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
* commit '53746972d0dda9cbbf3d49cfa71271eaeb5cfe5b': Fix NPE
This commit is contained in:
commit
c11184638e
@ -205,10 +205,10 @@ public class LatinKeyboardView extends KeyboardView {
|
|||||||
@Override
|
@Override
|
||||||
public boolean onTouchEvent(MotionEvent me) {
|
public boolean onTouchEvent(MotionEvent me) {
|
||||||
LatinKeyboard keyboard = getLatinKeyboard();
|
LatinKeyboard keyboard = getLatinKeyboard();
|
||||||
|
if (keyboard == null) return true;
|
||||||
|
|
||||||
// If there was a sudden jump, return without processing the actual motion event.
|
// If there was a sudden jump, return without processing the actual motion event.
|
||||||
if (handleSuddenJump(me))
|
if (handleSuddenJump(me)) return true;
|
||||||
return true;
|
|
||||||
|
|
||||||
// Reset any bounding box controls in the keyboard
|
// Reset any bounding box controls in the keyboard
|
||||||
if (me.getAction() == MotionEvent.ACTION_DOWN) {
|
if (me.getAction() == MotionEvent.ACTION_DOWN) {
|
||||||
|
Loading…
Reference in New Issue
Block a user