am 2afa0e62: Merge "Fix a bug where gesture would delay update."

* commit '2afa0e621eab2ebd7e2bde344dd209308a75dcfc':
  Fix a bug where gesture would delay update.
This commit is contained in:
Jean Chalard 2013-10-01 09:52:11 -07:00 committed by Android Git Automerger
commit 6f2830dcb9

View File

@ -823,14 +823,16 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
final int size = sAggregratedPointers.getPointerSize();
if (size > sLastRecognitionPointSize
&& stroke.hasRecognitionTimePast(eventTime, sLastRecognitionTime)) {
sLastRecognitionPointSize = size;
sLastRecognitionTime = eventTime;
if (DEBUG_LISTENER) {
Log.d(TAG, String.format("[%d] onUpdateBatchInput: batchPoints=%d", mPointerId,
size));
}
mTimerProxy.startUpdateBatchInputTimer(this);
mListener.onUpdateBatchInput(sAggregratedPointers);
// The listener may change the size of the pointers (when auto-committing
// for example), so we need to get the size from the pointers again.
sLastRecognitionPointSize = sAggregratedPointers.getPointerSize();
sLastRecognitionTime = eventTime;
}
}
}