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

Skip to content
Commit fa2c69f6 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

InputDispatcher: Only dispatch fallback keys when there's a window

InputDispatcher has an invariant where an input channel must have a
window for dispatcher to be able to target an event to the channel
(i.e. enqueue the event onto the channel's outbound queue - excluding
global monitors).

Fallback key handling logic seems to be the only place where this
invariant does not explicitly hold.

In this CL, we add checks to the fallback logic to uphold this invariant
and ensure the channel has at least one window before generating events
for it.

Bug: 210460522
Test: atest inputflinger_tests
Change-Id: I76ef8b559150a44dc98ea42e52fa92a6b90cde3a
parent 6c8661ac
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment