Suppress calling onPressKey and onReleaseKey while detecting gesture
Bug: 8284624 Change-Id: I14470bb2373965aefa921b2c94948450bfa438e3main
parent
dc64866c70
commit
a91da76683
|
@ -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 {
|
||||||
// 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();
|
||||||
|
|
Loading…
Reference in New Issue