Skip to content
Commit c570bfdb authored by Siarhei Vishniakou's avatar Siarhei Vishniakou
Browse files

Send touch mode state to input

WindowManager remains the source of truth of the touchmode state.
However, we need to keep a copy of this state in input.

The apps determine the touch mode state. Therefore, a single app will
affect the global state. That state change needs to be propagated to
other apps, when they become focused.

If the input dispatches focus to the apps instead of the WindowManager,
input needs to keep a copy of the touch mode state.

Since the touch mode state changes infrequently, this should not have
performance impact.

Bug: 70668286
Test: presubmit
Change-Id: I44ca9cd87876bca65259043260f7e0da75d104ea
parent 4ca4a363
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment