diff options
| author | Emilie Roberts <hadrosaur@google.com> | 2022-03-31 16:00:46 +0200 |
|---|---|---|
| committer | Emilie Roberts <hadrosaur@google.com> | 2022-03-31 14:16:10 +0000 |
| commit | e27372d101c6f778024404a2217960fd4dbff475 (patch) | |
| tree | 5636092681f56a1c12a626165bcaff84c627ac8d /core/java/android/util/SparseSetArray.java | |
| parent | 8c13b43b855b4a11d5fdc5a62f31b10bac99ad6a (diff) | |
Allow rapid request/release of pointer capture
This removes a check for if pointer capture is already enabled when a
call to request/release it is made. This attempt to de-duplicate the
call can prevent a 2nd call from reaching the underlying implementation
if it is made too quickly.
In b/217714520, Minecraft: EDU was calling View.requestPointerCapture()
followed by View.releasePointerCapture() in quick succession, causing
the mouse cursor to disappear due to this check.
Test: manually test Minecraft: EDU. Enter a world, then return to the
main menu
Test: atest PointerCaptureTest
Bug: 217714520
Change-Id: I78c6c6f90409ca5e46e2680cc5fbb3c5ee17dc17
Diffstat (limited to 'core/java/android/util/SparseSetArray.java')
0 files changed, 0 insertions, 0 deletions
