am 6456aabb: am c869a224: Merge "Don\'t show gesture preview trail while detecting gesture input" into jb-mr1-dev

* commit '6456aabb09a66cef407e777b66ac19548e2c635d':
  Don't show gesture preview trail while detecting gesture input
This commit is contained in:
Tadashi G. Takaoka 2012-09-14 10:29:46 -07:00 committed by Android Git Automerger
commit 49f0387103

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);
}