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

Commit a7dde34a authored by Aurimas Liutikas's avatar Aurimas Liutikas Committed by Android (Google) Code Review
Browse files

Merge "Remove internal listener when cloning" into oc-dev

parents 88c6ec9f c457547c
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1346,6 +1346,8 @@ public final class AnimatorSet extends Animator implements AnimationHandler.Anim
        for (int n = 0; n < nodeCount; n++) {
            final Node node = mNodes.get(n);
            Node nodeClone = node.clone();
            // Remove the old internal listener from the cloned child
            nodeClone.mAnimation.removeListener(mDummyListener);
            clonesMap.put(node, nodeClone);
            anim.mNodes.add(nodeClone);
            anim.mNodeMap.put(nodeClone.mAnimation, nodeClone);