From ff65c8c559941cac3f64ddaf350db318f3e993bb Mon Sep 17 00:00:00 2001 From: Romain Guy Date: Sat, 23 Jan 2010 10:21:12 -0800 Subject: Make vertical LinearLayouts behave like horizontal LLs do. A bug fix in the horizontal handling of "useLargestChild" was not fixed in the vertical code. --- core/java/android/widget/LinearLayout.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/java/android/widget/LinearLayout.java') diff --git a/core/java/android/widget/LinearLayout.java b/core/java/android/widget/LinearLayout.java index 52a8679757ab..b4e2790ae56e 100644 --- a/core/java/android/widget/LinearLayout.java +++ b/core/java/android/widget/LinearLayout.java @@ -441,7 +441,7 @@ public class LinearLayout extends ViewGroup { i += getChildrenSkipCount(child, i); } - if (useLargestChild) { + if (useLargestChild && heightMode == MeasureSpec.AT_MOST) { mTotalLength = 0; for (int i = 0; i < count; ++i) { -- cgit v1.2.3