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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user