From b13d7b5cf0738a79bb7acdda3060f390deaa58cd Mon Sep 17 00:00:00 2001 From: Jeff Brown Date: Fri, 15 Oct 2010 16:20:51 -0700 Subject: Fix a native crash in input dispatcher when windows are removed. Bug: 3101826 Change-Id: I040838600a6105c8d9f3235025dc0a7b5b27da2e --- libs/ui/InputDispatcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs') 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& 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); } } -- cgit v1.1