Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9f20380 authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka
Browse files

Fix potential NPE

Change-Id: I00e7cd521bafd2705ebc2a59d63b7bfc4fe178ba
parent 33f595c3
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -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;