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
Loading
Please register or sign in to comment