summaryrefslogtreecommitdiff
path: root/core/java/android/util/SparseSetArray.java
diff options
context:
space:
mode:
authorEmilie Roberts <hadrosaur@google.com>2022-03-31 16:00:46 +0200
committerEmilie Roberts <hadrosaur@google.com>2022-03-31 14:16:10 +0000
commite27372d101c6f778024404a2217960fd4dbff475 (patch)
tree5636092681f56a1c12a626165bcaff84c627ac8d /core/java/android/util/SparseSetArray.java
parent8c13b43b855b4a11d5fdc5a62f31b10bac99ad6a (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