Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d04b1a4 authored by Doris Liu's avatar Doris Liu
Browse files

Allow null target in ObjectAnimator if the target has never been set

BUG: 31684571
Test: http://ag/1484115

Change-Id: I867fc3f93ddf70c58ae4387317ac875c5bafbebe
parent 3b2f7710
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -977,8 +977,9 @@ public final class ObjectAnimator extends ValueAnimator {
    @Override
    void animateValue(float fraction) {
        final Object target = getTarget();
        if (target == null) {
            // We lost the target reference, cancel and clean up.
        if (mTarget != null && target == null) {
            // We lost the target reference, cancel and clean up. Note: we allow null target if the
            /// target has never been set.
            cancel();
            return;
        }