mirror of
https://gitlab.futo.org/keyboard/latinime.git
synced 2024-09-28 14:54:30 +01:00
Fix potential NPE
Change-Id: I00e7cd521bafd2705ebc2a59d63b7bfc4fe178ba
This commit is contained in:
parent
33f595c33b
commit
c9f203805c
@ -480,7 +480,8 @@ public class PointerTracker {
|
||||
Key key = onDownKey(x, y, eventTime);
|
||||
// Sliding key is allowed when 1) enabled by configuration, 2) this pointer starts sliding
|
||||
// from modifier key, or 3) this pointer's KeyDetector always allows sliding input.
|
||||
mIsAllowedSlidingKeyInput = sConfigSlidingKeyInputEnabled || key.isModifier()
|
||||
mIsAllowedSlidingKeyInput = sConfigSlidingKeyInputEnabled
|
||||
|| (key != null && key.isModifier())
|
||||
|| mKeyDetector.alwaysAllowsSlidingInput();
|
||||
mKeyboardLayoutHasBeenChanged = false;
|
||||
mKeyAlreadyProcessed = false;
|
||||
|
Loading…
Reference in New Issue
Block a user