Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f0810cf0 authored by Jeff Brown's avatar Jeff Brown Committed by Android Git Automerger
Browse files

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.
parents a357543d 3d3429e6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,