diff options
| author | Jeff Brown <jeffbrown@google.com> | 2010-10-11 18:22:53 -0700 |
|---|---|---|
| committer | Jeff Brown <jeffbrown@google.com> | 2010-10-11 18:22:53 -0700 |
| commit | a1160a798b688370bed3642a105dfeb7fba2f5f3 (patch) | |
| tree | 51d68dce59ef9b99f12fcfe46bdc0220ecbb07e5 /libs/ui/InputDispatcher.cpp | |
| parent | de846ac659e8c14d898a3fa14bd0504b24096057 (diff) | |
| download | frameworks_base-a1160a798b688370bed3642a105dfeb7fba2f5f3.zip frameworks_base-a1160a798b688370bed3642a105dfeb7fba2f5f3.tar.gz frameworks_base-a1160a798b688370bed3642a105dfeb7fba2f5f3.tar.bz2 | |
Fix a bug synthesizing cancelation events for motions.
Change-Id: I881c0fa16c1d22c4b1b6cca24deb0105405ff5b0
Diffstat (limited to 'libs/ui/InputDispatcher.cpp')
| -rw-r--r-- | libs/ui/InputDispatcher.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ui/InputDispatcher.cpp b/libs/ui/InputDispatcher.cpp index 41b6ff3..054042f 100644 --- a/libs/ui/InputDispatcher.cpp +++ b/libs/ui/InputDispatcher.cpp @@ -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, |
