am 805bae95: am 6f2830dc: am 2afa0e62: Merge "Fix a bug where gesture would delay update."
* commit '805bae9575809be17e61aa1f82e36c9f0d365ba7': Fix a bug where gesture would delay update.main
commit
dc674273ac
|
@ -823,14 +823,16 @@ public final class PointerTracker implements PointerTrackerQueue.Element {
|
||||||
final int size = sAggregratedPointers.getPointerSize();
|
final int size = sAggregratedPointers.getPointerSize();
|
||||||
if (size > sLastRecognitionPointSize
|
if (size > sLastRecognitionPointSize
|
||||||
&& stroke.hasRecognitionTimePast(eventTime, sLastRecognitionTime)) {
|
&& stroke.hasRecognitionTimePast(eventTime, sLastRecognitionTime)) {
|
||||||
sLastRecognitionPointSize = size;
|
|
||||||
sLastRecognitionTime = eventTime;
|
|
||||||
if (DEBUG_LISTENER) {
|
if (DEBUG_LISTENER) {
|
||||||
Log.d(TAG, String.format("[%d] onUpdateBatchInput: batchPoints=%d", mPointerId,
|
Log.d(TAG, String.format("[%d] onUpdateBatchInput: batchPoints=%d", mPointerId,
|
||||||
size));
|
size));
|
||||||
}
|
}
|
||||||
mTimerProxy.startUpdateBatchInputTimer(this);
|
mTimerProxy.startUpdateBatchInputTimer(this);
|
||||||
mListener.onUpdateBatchInput(sAggregratedPointers);
|
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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue