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

Commit ca962327 authored by Josh Tsuji's avatar Josh Tsuji Committed by Android (Google) Code Review
Browse files

Merge "Check if the animation is null before trying to start it."

parents 57689210 43a60af5
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -961,6 +961,13 @@ public class PhysicsAnimationLayout extends FrameLayout {
            if (view != null) {
                final SpringAnimation animation =
                        (SpringAnimation) view.getTag(getTagIdForProperty(property));

                // If the animation is null, the view was probably removed from the layout before
                // the animation started.
                if (animation == null) {
                    return;
                }

                if (afterCallbacks != null) {
                    animation.addEndListener(new OneTimeEndListener() {
                        @Override