Skip to content
Snippets Groups Projects
Commit f670dad1 authored by Prabir Pradhan's avatar Prabir Pradhan
Browse files

Reset the touch state when the active viewport is disabled

When an active viewport becomes inactive, cancel any ongoing gestures
immediately. When the viewport becomes active again, make sure state is
reset again so that we eliminate any race conditions between the
viewport becoming active and first touches coming in from the device.

This is a preventative measure to defend against unexpected touch
behavior around viewports being activated and deactivated.

Bug: 234662773
Test: atest inputflinger_tests
Change-Id: I111361f7470fdad39b493b516e8a8f167e0c681c
Merged-In: I111361f7470fdad39b493b516e8a8f167e0c681c
(cherry picked from commit c0bdeefd)
parent 36690419
No related branches found
No related tags found
No related merge requests found
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