Skip to content
Snippets Groups Projects
Commit eabb710b authored by Tadashi G. Takaoka's avatar Tadashi G. Takaoka Committed by Android Git Automerger
Browse files

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

* commit 'f224941c':
  Suppress calling onPressKey and onReleaseKey while detecting gesture
parents 089f1ce9 f224941c
No related branches found
No related tags found
No related merge requests found
...@@ -441,7 +441,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element { ...@@ -441,7 +441,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
// Returns true if keyboard has been changed by this callback. // Returns true if keyboard has been changed by this callback.
private boolean callListenerOnPressAndCheckKeyboardLayoutChange(final Key key) { private boolean callListenerOnPressAndCheckKeyboardLayoutChange(final Key key) {
if (sInGesture) { if (sInGesture || mIsDetectingGesture) {
return false; return false;
} }
final boolean ignoreModifierKey = mIsInSlidingKeyInputFromModifier && key.isModifier(); final boolean ignoreModifierKey = mIsInSlidingKeyInputFromModifier && key.isModifier();
...@@ -500,7 +500,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element { ...@@ -500,7 +500,7 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
// primaryCode is different from {@link Key#mCode}. // primaryCode is different from {@link Key#mCode}.
private void callListenerOnRelease(final Key key, final int primaryCode, private void callListenerOnRelease(final Key key, final int primaryCode,
final boolean withSliding) { final boolean withSliding) {
if (sInGesture) { if (sInGesture || mIsDetectingGesture) {
return; return;
} }
final boolean ignoreModifierKey = mIsInSlidingKeyInputFromModifier && key.isModifier(); final boolean ignoreModifierKey = mIsInSlidingKeyInputFromModifier && key.isModifier();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment