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

Merge commit 'a28d5aff5466a55149b9e6f9cd908fcc225c25ff' into gingerbread-plus-aosp

* commit 'a28d5aff5466a55149b9e6f9cd908fcc225c25ff':
  Fix a bug synthesizing cancelation events for motions.
This commit is contained in:
Jeff Brown
2010-10-11 20:24:38 -07:00
committed by Android Git Automerger

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,