commit | 93e5b37fe185d2656b41500486da5f031f252670 | [log] [tgz] |
---|---|---|
author | Bryce Lee <brycelee@google.com> | Thu Sep 26 13:34:40 2024 -0700 |
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | Wed Oct 02 01:57:14 2024 +0000 |
tree | 298c17cfbb7b21d2a94f7f79d808b8f76f64859b | |
parent | a52f68e387d6102873c474e4177fc65034dd25b8 [diff] |
Do not restart touch listening if TouchMonitor is destroyed. This changelist ensures that TouchMonitor does not continue listening and handling touches past destroy. Previously, this was possible if touch handling ended after the monitor was destroyed. In this case, the TouchMonitor was reset incorrectly to a listening/ready state. Logging has also been improved with this change by adding a unique identifier to each TouchMonitor instance for better attribution. Test: atest TouchMonitorTest#testSessionPopAfterDestroy Flag: EXEMPT bugfix Fixes: 367549056 (cherry picked from https://googleplex-android-review.googlesource.com/q/commit:831010e556becd2d9447f0851eb9b7ced9597bfa) Merged-In: I16d99aab763570693144f15d102ae07ac2d9cd07 Change-Id: I16d99aab763570693144f15d102ae07ac2d9cd07