summaryrefslogtreecommitdiff
path: root/core/java/android/widget/LinearLayout.java
diff options
context:
space:
mode:
authorKarl Rosaen <krosaen@android.com>2009-08-12 17:18:33 -0700
committerKarl Rosaen <krosaen@android.com>2009-08-12 17:18:33 -0700
commitc1f9c40c23a756a11394a35f37053f796494b224 (patch)
tree74c01e899dc5f766e2c4c38caa9f0938e9a7f48f /core/java/android/widget/LinearLayout.java
parentf2c9b2c0b4e4e7df17ca0ff03311ea3f23cc2148 (diff)
Default mBaselineAlignedChildIndex to -1 so it will still be valid when a LinearLayout is created programatically.
Fixes bug 2038629, and thereby external issue 3484.
Diffstat (limited to 'core/java/android/widget/LinearLayout.java')
-rw-r--r--core/java/android/widget/LinearLayout.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/widget/LinearLayout.java b/core/java/android/widget/LinearLayout.java
index a9822f8bc2ce..6cc794b97ac9 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.