Cancel gesture preview update when gesture typing is canceled

Bug: 7594165
Change-Id: I2854a49b2a2e5d3e36cafc5196191359fd2bf003
This commit is contained in:
Tadashi G. Takaoka 2012-12-03 14:42:26 +09:00
parent d4dbf09241
commit 6f0a60d10d

View File

@ -721,6 +721,9 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
if (key != null) {
updateBatchInput(eventTime);
}
if (mIsTrackingCanceled) {
return;
}
mDrawingProxy.showGesturePreviewTrail(this, isOldestTrackerInQueue(this));
}
@ -759,6 +762,9 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
}
}
}
if (mIsTrackingCanceled) {
return;
}
mDrawingProxy.showGesturePreviewTrail(this, isOldestTrackerInQueue(this));
}