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

Commit 40771bc4 authored by Patrick Dubroy's avatar Patrick Dubroy
Browse files

Fix NPE in onAnimationEnd when using Sequencer.after(long)

parent 16f8c620
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -713,11 +713,7 @@ public final class Sequencer extends Animatable {
         */
        public void after(long delay) {
            // setup dummy Animator just to run the clock
            Animator anim = new Animator(delay, 0f, 1f);
            Node node = new Node(anim);
            mNodes.add(node);
            Dependency dependency = new Dependency(node, Dependency.AFTER);
            mCurrentNode.addDependency(dependency);
            after(new Animator(delay, 0f, 1f));
        }

    }