summaryrefslogtreecommitdiffstats
path: root/libs/ui
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@google.com>2010-10-15 16:20:51 -0700
committerJeff Brown <jeffbrown@google.com>2010-10-15 16:20:51 -0700
commitaf48cae6e59f579c20c3ecd08623214896e7923e (patch)
treec9835705bcef57639a6b6d3838b8bbce0606f202 /libs/ui
parent2d3f159aa9622e05a18e7f93cecd57ad673955ae (diff)
downloadframeworks_base-af48cae6e59f579c20c3ecd08623214896e7923e.zip
frameworks_base-af48cae6e59f579c20c3ecd08623214896e7923e.tar.gz
frameworks_base-af48cae6e59f579c20c3ecd08623214896e7923e.tar.bz2
Fix a native crash in input dispatcher when windows are removed.
Bug: 3101826 Change-Id: I040838600a6105c8d9f3235025dc0a7b5b27da2e
Diffstat (limited to 'libs/ui')
-rw-r--r--libs/ui/InputDispatcher.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ui/InputDispatcher.cpp b/libs/ui/InputDispatcher.cpp
index 41123284..92daee1 100644
--- a/libs/ui/InputDispatcher.cpp
+++ b/libs/ui/InputDispatcher.cpp
@@ -2536,9 +2536,9 @@ void InputDispatcher::setInputWindows(const Vector<InputWindow>& inputWindows) {
#if DEBUG_FOCUS
LOGD("Touched window was removed: %s", touchedWindow.channel->getName().string());
#endif
- mTouchState.windows.removeAt(i);
synthesizeCancelationEventsForInputChannelLocked(touchedWindow.channel,
InputState::CANCEL_POINTER_EVENTS, "touched window was removed");
+ mTouchState.windows.removeAt(i);
}
}