commit | c4d29f2a1c6e8e9c3cdb3fc2bf8a8151fb24716b | [log] [tgz] |
---|---|---|
author | Jorim Jaggi <jjaggi@google.com> | Thu Mar 22 16:30:56 2018 +0100 |
committer | Jorim Jaggi <jjaggi@google.com> | Thu Mar 22 16:46:56 2018 +0100 |
tree | 9ddde36b640ff9a93660e09deb0ab92cd4e5eae0 | |
parent | bf121d2f13cb4f2f136fc1563553d93d8ba202d8 [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