am c66a2d1d: am 61155c70: am 9d423536: Merge "Don\'t cancel long press timer too early" into jb-mr1-dev
* commit 'c66a2d1da69de796a2a7acb5dd6903cb5668585c': Don't cancel long press timer too earlymain
commit
c1f2c3a646
|
@ -836,13 +836,11 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
||||||
// Register move event on gesture tracker.
|
// Register move event on gesture tracker.
|
||||||
onGestureMoveEvent(x, y, eventTime, true /* isMajorEvent */, key);
|
onGestureMoveEvent(x, y, eventTime, true /* isMajorEvent */, key);
|
||||||
if (sInGesture) {
|
if (sInGesture) {
|
||||||
|
mTimerProxy.cancelLongPressTimer();
|
||||||
mCurrentKey = null;
|
mCurrentKey = null;
|
||||||
setReleasedKeyGraphics(oldKey);
|
setReleasedKeyGraphics(oldKey);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (mGestureStrokeWithPreviewPoints.hasDetectedFastMove()) {
|
|
||||||
mTimerProxy.cancelLongPressTimer();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (key != null) {
|
if (key != null) {
|
||||||
|
|
|
@ -243,7 +243,7 @@ public class GestureStroke {
|
||||||
mLastMajorEventY = y;
|
mLastMajorEventY = y;
|
||||||
}
|
}
|
||||||
|
|
||||||
public final boolean hasDetectedFastMove() {
|
private final boolean hasDetectedFastMove() {
|
||||||
return mDetectFastMoveTime > 0;
|
return mDetectFastMoveTime > 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue