diff options
Diffstat (limited to 'core')
| -rw-r--r-- | core/java/android/animation/LayoutTransition.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/core/java/android/animation/LayoutTransition.java b/core/java/android/animation/LayoutTransition.java index bdcb2af..4d3a519 100644 --- a/core/java/android/animation/LayoutTransition.java +++ b/core/java/android/animation/LayoutTransition.java @@ -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(); |
