Don't show gesture preview trail while detecting gesture input

Bug: 7166222
Change-Id: Iecc8403a4eca305323ed8c8e17266d23172d84d9
main
Tadashi G. Takaoka 2012-09-14 10:23:59 +09:00
parent d7fdc730c3
commit 9c5d165e9c
1 changed files with 7 additions and 6 deletions

View File

@ -545,13 +545,14 @@ public class PointerTracker implements PointerTrackerQueue.Element {
}
private void startBatchInput() {
if (!sInGesture && mGestureStrokeWithPreviewTrail.isStartOfAGesture()) {
if (DEBUG_LISTENER) {
Log.d(TAG, "onStartBatchInput");
}
sInGesture = true;
mListener.onStartBatchInput();
if (sInGesture || !mGestureStrokeWithPreviewTrail.isStartOfAGesture()) {
return;
}
if (DEBUG_LISTENER) {
Log.d(TAG, "onStartBatchInput");
}
sInGesture = true;
mListener.onStartBatchInput();
final boolean isOldestTracker = sPointerTrackerQueue.getOldestElement() == this;
mDrawingProxy.showGesturePreviewTrail(this, isOldestTracker);
}