summaryrefslogtreecommitdiffstats
path: root/libs
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
commitb13d7b5cf0738a79bb7acdda3060f390deaa58cd (patch)
tree7b40e4ea2eb89758423bb5bf9f693adbe9d57d2c /libs
parentd9dd44d867315478bbebfbe69bb952ea8138ac4e (diff)
downloadframeworks_native-b13d7b5cf0738a79bb7acdda3060f390deaa58cd.zip
frameworks_native-b13d7b5cf0738a79bb7acdda3060f390deaa58cd.tar.gz
frameworks_native-b13d7b5cf0738a79bb7acdda3060f390deaa58cd.tar.bz2
Fix a native crash in input dispatcher when windows are removed.
Bug: 3101826 Change-Id: I040838600a6105c8d9f3235025dc0a7b5b27da2e
Diffstat (limited to 'libs')
-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 4112328..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);
}
}