am 9d423536
: Merge "Don\'t cancel long press timer too early" into jb-mr1-dev
* commit '9d42353611d77be82316c79fe598d101639c2486': Don't cancel long press timer too early
This commit is contained in:
commit
61155c7087
2 changed files with 2 additions and 4 deletions
|
@ -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 a new issue