Merge "Fix a bug synthesizing cancelation events for motions." into gingerbread

This commit is contained in:
Jeff Brown
2010-10-11 20:22:02 -07:00
committed by Android (Google) Code Review

View File

@ -3320,7 +3320,7 @@ void InputDispatcher::InputState::synthesizeCancelationEvents(nsecs_t currentTim
}
}
for (size_t i = 0; i < mMotionMementos.size(); i++) {
for (size_t i = 0; i < mMotionMementos.size(); ) {
const MotionMemento& memento = mMotionMementos.itemAt(i);
if (shouldCancelEvent(memento.source, options)) {
outEvents.push(allocator->obtainMotionEntry(currentTime,