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

Commit f574ba6e authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Allow null target in ObjectAnimator if the target has never been set" into nyc-mr1-dev

parents db2fcf60 4d04b1a4
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;
        }