Merge "Fix a native crash in input dispatcher when windows are removed." into gingerbread

This commit is contained in:
Jeff Brown
2010-10-15 16:52:10 -07:00
committed by Android (Google) Code Review

View File

@@ -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);
}
}