am c9f20380: Fix potential NPE
* commit 'c9f203805ca23276fcdcdc79b9298bc1d413ad98': Fix potential NPEmain
commit
4096dd23cf
|
@ -480,7 +480,8 @@ public class PointerTracker {
|
||||||
Key key = onDownKey(x, y, eventTime);
|
Key key = onDownKey(x, y, eventTime);
|
||||||
// Sliding key is allowed when 1) enabled by configuration, 2) this pointer starts sliding
|
// 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.
|
// 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();
|
|| mKeyDetector.alwaysAllowsSlidingInput();
|
||||||
mKeyboardLayoutHasBeenChanged = false;
|
mKeyboardLayoutHasBeenChanged = false;
|
||||||
mKeyAlreadyProcessed = false;
|
mKeyAlreadyProcessed = false;
|
||||||
|
|
Loading…
Reference in New Issue