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

Commit b13d7b5c authored by Jeff Brown's avatar Jeff Brown
Browse files

Fix a native crash in input dispatcher when windows are removed.

Bug: 3101826
Change-Id: I040838600a6105c8d9f3235025dc0a7b5b27da2e
parent d9dd44d8
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);
            }
            }
        }
        }