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

Commit 479255ee authored by Chet Haase's avatar Chet Haase Committed by Android Git Automerger
Browse files

am 5d666b94: am faa3233e: Merge "Skip LayoutTransition animations on objects...

am 5d666b94: am faa3233e: Merge "Skip LayoutTransition animations on objects of size (0,0)" into jb-dev

* commit '5d666b94':
  Skip LayoutTransition animations on objects of size (0,0)
parents 275b0103 5d666b94
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -831,6 +831,14 @@ public class LayoutTransition {
            return;
        }

        // Don't animate items up from size(0,0); this is likely because the objects
        // were offscreen/invisible or otherwise measured to be infinitely small. We don't
        // want to see them animate into their real size; just ignore animation requests
        // on these views
        if (child.getWidth() == 0 && child.getHeight() == 0) {
            return;
        }

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