Merge "Don't show gesture preview trail while detecting gesture input" into jb-mr1-dev

main
Tadashi G. Takaoka 2012-09-13 19:30:00 -07:00 committed by Android (Google) Code Review
commit c869a224a4
1 changed files with 7 additions and 6 deletions

View File

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