summaryrefslogtreecommitdiff
path: root/rs/java/android/renderscript/ProgramStore.java
diff options
context:
space:
mode:
authorJorim Jaggi <jjaggi@google.com>2018-03-22 16:30:56 +0100
committerJorim Jaggi <jjaggi@google.com>2018-03-22 16:46:56 +0100
commitc4d29f2a1c6e8e9c3cdb3fc2bf8a8151fb24716b (patch)
tree9ddde36b640ff9a93660e09deb0ab92cd4e5eae0 /rs/java/android/renderscript/ProgramStore.java
parentbf121d2f13cb4f2f136fc1563553d93d8ba202d8 (diff)
Fix NPE when animation doesn't get started
If animation start is delayed, there is no guarantee that startAnimation is called on the adapter. Thus, protect RemoteAnimationController against this case, as leash and finishedCallback would be null. Furthermore don't even try to start remote animation that is delayed as it would leave it hanging forever. Test: SurfaceAnimatorTest/RemoteAnimationControllerTest Change-Id: I72c492c4fb6ca8eeae481d2c281e9c1fee95f921 Fixes: 76096628
Diffstat (limited to 'rs/java/android/renderscript/ProgramStore.java')
0 files changed, 0 insertions, 0 deletions