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

Commit 56a47481 authored by Chet Haase's avatar Chet Haase Committed by Android Git Automerger
Browse files

am 692fda9d: Merge "Fix leak in LayoutTransition" into ics-mr1

* commit '692fda9d':
  Fix leak in LayoutTransition
parents 8d55a242 692fda9d
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -657,6 +657,15 @@ public class LayoutTransition {
     */
    private void setupChangeAnimation(final ViewGroup parent, final int changeReason,
            Animator baseAnimator, final long duration, final View child) {

        // If we already have a listener for this child, then we've already set up the
        // changing animation we need. Multiple calls for a child may occur when several
        // add/remove operations are run at once on a container; each one will trigger
        // changes for the existing children in the container.
        if (layoutChangeListenerMap.get(child) != null) {
            return;
        }

        // Make a copy of the appropriate animation
        final Animator anim = baseAnimator.clone();