diff options
author | Daichi Hirono <hirono@google.com> | 2017-11-21 13:10:42 +0900 |
---|---|---|
committer | Daichi Hirono <hirono@google.com> | 2017-11-21 13:27:07 +0900 |
commit | 971fe912c7aa1160bb515057ac267a6caae4b8bb (patch) | |
tree | fb17a384fe6c27c4361d4009bbca7d901cc747ae /tools/aapt2/java/JavaClassGenerator_test.cpp | |
parent | 0afe0849656ebc854821fcf287577347f8123679 (diff) |
Fix race between AnimationListener and DragState
Previously AnimationListener refers ValueAnimator via
DragState#mAnimator, however the variable may be null because the
animation is submitted to the animation thread before mAnimator is
updated and we don't have any synchrnoization between the animation
thread and other threads.
This causes NPE in CrossAppDragAndDropTests.
The CL changes AnimationListener so that it uses animator passed by
argument.
Bug: 69575965
Test: CrossAppDragAndDropTests
Change-Id: I454697136aa35c0a9525ab58171347389b483cb1
Diffstat (limited to 'tools/aapt2/java/JavaClassGenerator_test.cpp')
0 files changed, 0 insertions, 0 deletions