Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 86e69e23 authored by Jeff Brown's avatar Jeff Brown Committed by Android (Google) Code Review
Browse files

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

parents 9b39c7a7 b13d7b5c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -2536,9 +2536,9 @@ void InputDispatcher::setInputWindows(const Vector<InputWindow>& inputWindows) {
#if DEBUG_FOCUS
#if DEBUG_FOCUS
                LOGD("Touched window was removed: %s", touchedWindow.channel->getName().string());
                LOGD("Touched window was removed: %s", touchedWindow.channel->getName().string());
#endif
#endif
                mTouchState.windows.removeAt(i);
                synthesizeCancelationEventsForInputChannelLocked(touchedWindow.channel,
                synthesizeCancelationEventsForInputChannelLocked(touchedWindow.channel,
                        InputState::CANCEL_POINTER_EVENTS, "touched window was removed");
                        InputState::CANCEL_POINTER_EVENTS, "touched window was removed");
                mTouchState.windows.removeAt(i);
            }
            }
        }
        }