summaryrefslogtreecommitdiff
path: root/api/api.go
diff options
context:
space:
mode:
author Shan Huang <shanh@google.com> 2022-06-16 21:57:33 -0700
committer Shan Huang <shanh@google.com> 2022-06-17 21:18:55 +0000
commitdb78c194d8dd8774c77d0ec8e8913b3eeaef8325 (patch)
treed3f06a9b8956d852aba046993ad8374948760d59 /api/api.go
parent1f9afd727a814c6160de4ca2bbf0b4cbff1875f7 (diff)
Pass the values of the MotionEvent instead of the event instance itself
to BackAnimation. The original MotionEvent instance may have been recycled by the time BackAnimation processes it, since BackAnimation runs in a different thread. This could cause crashes from both Java side and native side, as described in b/233163975#comment11. We work around this by passing the numerical values that BackAnimation need instead of the MotionEvent itself. Test: Swipe back in various scenarios. Make sure back can be triggered. Try cancel. Make sure back can be cancelled. Test: atest BackAnimationControllerTest Bug: 233163975 Change-Id: I4792debc705536b49d1caafcc43e5466941c1d43 Merged-In: I4792debc705536b49d1caafcc43e5466941c1d43
Diffstat (limited to 'api/api.go')
0 files changed, 0 insertions, 0 deletions