commit | 48710e42b7871247e8781f082ec8aa1adbc4ab1a | [log] [tgz] |
---|---|---|
author | Antonio Kantek <kanant@google.com> | Thu Mar 24 14:19:30 2022 -0700 |
committer | Antonio Kantek <kanant@google.com> | Fri Apr 01 09:23:07 2022 -0700 |
tree | 60069ff83e6af1f2864aafd51b3c14edea756728 | |
parent | 1f692ead0f1a1d8eea36298b2e94c9439da8064b [diff] |
Add last interacted window check in setInTouchMode Allow touch mode switch if caller owns the focused window. If no window is currently focused, then touch will be still allowed if caller owned one of the previously interacted window. Bug: 218541064 Test: atest inputflinger_tests Test: atest InputDispatcherTouchModeChangedTests Change-Id: I5cfa879a6e1358efe3781061c5712707da813967