commit | d14f0147d0a55b2431e0d9fcc5752e4ffa7ffc11 | [log] [tgz] |
---|---|---|
author | Yeabkal Wubshit <yeabkal@google.com> | Sun May 12 10:18:24 2024 -0700 |
committer | Yeabkal Wubshit <yeabkal@google.com> | Sun May 12 10:18:24 2024 -0700 |
tree | 093daf0fc247e990da98ae0a4467856103187051 | |
parent | c7942f24d7ad46703a872f2431a78e103c9918a2 [diff] |
Copy FocusEventDebugView MotionEvent before it gets recycled The MotionEvent used to be copied in the "post" runnable, which runs async from the calling thread which might have recycled the MotionEvent before it gets copied. This fixes avoids that by doing the copy in the same/caller runnable to ensure that there is no copy attempt of a MotionEvent that has been recycled. Bug: 339426797 Test: n/a Change-Id: I9f7e33a84ee2debf93b58a6ee69fd1aef963ffe5