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

Commit 333bb7db authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android Git Automerger
Browse files

am eabb710b: am f224941c: Merge "Suppress calling onPressKey and onReleaseKey...

am eabb710b: am f224941c: Merge "Suppress calling onPressKey and onReleaseKey while detecting gesture"

* commit 'eabb710b':
  Suppress calling onPressKey and onReleaseKey while detecting gesture
parents ed497d24 eabb710b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -441,7 +441,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {

    // Returns true if keyboard has been changed by this callback.
    private boolean callListenerOnPressAndCheckKeyboardLayoutChange(final Key key) {
        if (sInGesture) {
        if (sInGesture || mIsDetectingGesture) {
            return false;
        }
        final boolean ignoreModifierKey = mIsInSlidingKeyInputFromModifier && key.isModifier();
@@ -500,7 +500,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
    // primaryCode is different from {@link Key#mCode}.
    private void callListenerOnRelease(final Key key, final int primaryCode,
            final boolean withSliding) {
        if (sInGesture) {
        if (sInGesture || mIsDetectingGesture) {
            return;
        }
        final boolean ignoreModifierKey = mIsInSlidingKeyInputFromModifier && key.isModifier();