From c1f9c40c23a756a11394a35f37053f796494b224 Mon Sep 17 00:00:00 2001 From: Karl Rosaen Date: Wed, 12 Aug 2009 17:18:33 -0700 Subject: [PATCH] Default mBaselineAlignedChildIndex to -1 so it will still be valid when a LinearLayout is created programatically. Fixes bug 2038629, and thereby external issue 3484. --- core/java/android/widget/LinearLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/android/widget/LinearLayout.java b/core/java/android/widget/LinearLayout.java index a9822f8bc2ce6..6cc794b97ac94 100644 --- a/core/java/android/widget/LinearLayout.java +++ b/core/java/android/widget/LinearLayout.java @@ -59,7 +59,7 @@ public class LinearLayout extends ViewGroup { * Note: this is orthogonal to {@link #mBaselineAligned}, which is concerned * with whether the children of this layout are baseline aligned. */ - private int mBaselineAlignedChildIndex = 0; + private int mBaselineAlignedChildIndex = -1; /** * The additional offset to the child's baseline.