Make vertical LinearLayouts behave like horizontal LLs do.

A bug fix in the horizontal handling of "useLargestChild" was not fixed in the vertical code.
This commit is contained in:
Romain Guy
2010-01-23 10:21:12 -08:00
parent 60e8495c16
commit ff65c8c559

View File

@@ -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) {