commit | d0ca6567f37aa0d24dd34a7d1e4cf3e5c77cdf4b | [log] [tgz] |
---|---|---|
author | Prabir Pradhan <prabirmsp@google.com> | Thu Feb 08 17:51:20 2024 +0000 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Sat Feb 10 21:20:49 2024 +0000 |
tree | 434d07c1d4b031beab6b42660f207473a9a7060e | |
parent | bdeb9b12cd8a53658dadbfd431d67899688de20b [diff] |
InputDispatcher: Fix crash when there is an ANR after window removal This addresses a bug in the change: I47744cbd677cc74e26a102c50a2c11c68bc8aa89 InputDispatcher has an invariant that it can only send events to a connection if it has a window. We did not check if the channel receiving an ANR had a window before attempting to synthesize cancellations for it. Bug: 324330557 Bug: 210460522 Test: atest inputflinger_tests (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:fc36472e3198d40da6adbff9d6c2f19f0e50bf43) Merged-In: I5f3013fe93c0f4d1bb0f58e7b2a241cffe5c5bf2 Change-Id: I5f3013fe93c0f4d1bb0f58e7b2a241cffe5c5bf2