Don't cancel long press timer too early
Bug: 7328861 Change-Id: I1b77ec4a30ae15b2edda42a1ff58ebc528288553main
parent
471252b9da
commit
c9ba26994b
|
@ -836,13 +836,11 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
|||
// Register move event on gesture tracker.
|
||||
onGestureMoveEvent(x, y, eventTime, true /* isMajorEvent */, key);
|
||||
if (sInGesture) {
|
||||
mTimerProxy.cancelLongPressTimer();
|
||||
mCurrentKey = null;
|
||||
setReleasedKeyGraphics(oldKey);
|
||||
return;
|
||||
}
|
||||
if (mGestureStrokeWithPreviewPoints.hasDetectedFastMove()) {
|
||||
mTimerProxy.cancelLongPressTimer();
|
||||
}
|
||||
}
|
||||
|
||||
if (key != null) {
|
||||
|
|
|
@ -243,7 +243,7 @@ public class GestureStroke {
|
|||
mLastMajorEventY = y;
|
||||
}
|
||||
|
||||
public final boolean hasDetectedFastMove() {
|
||||
private final boolean hasDetectedFastMove() {
|
||||
return mDetectFastMoveTime > 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue