commit | 3a240c441917de16db22705ce79a39b6a93cd792 | [log] [tgz] |
---|---|---|
author | Michael Wright <michaelwr@google.com> | Tue Dec 10 20:53:41 2019 +0000 |
committer | Michael Wright <michaelwr@google.com> | Tue Dec 10 20:57:10 2019 +0000 |
tree | 58e4b35cbe4b6bd187ef9d09d23cab07a9559adc | |
parent | 0d4bd95f746fe21e2a24b1e66d2215acc130e136 [diff] |
Check whether channel has been removed before sending cancelation. When a gesture monitor pilfers pointers we synthesize cancelation events for all currently active windows. It's possible, however, that a window may have been removed between the beginning of the touch stream and now, so we have to check whether the corresponding channel still exists. Bug: 145891806 Test: atest InputDispatcher_test.cpp Change-Id: If16191b02bbb35886171c402b9bb74f547bdf94a