Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6259ae45 authored by Alan Viverette's avatar Alan Viverette Committed by android-build-merger
Browse files

Merge \\\"Exclude children from excess space distribution when using largest...

Merge \\\"Exclude children from excess space distribution when using largest child\\\" into nyc-dev am: 7705d5fd am: 650cc68f
am: 0c359bad

Change-Id: I116d4bd532751159c59f8178dead7503e562af85
parents 4c1cba64 0c359bad
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -914,7 +914,9 @@ public class LinearLayout extends ViewGroup {
                    remainingWeightSum -= childWeight;

                    final int childHeight;
                    if (lp.height == 0 && (!mAllowInconsistentMeasurement
                    if (mUseLargestChild && heightMode != MeasureSpec.EXACTLY) {
                        childHeight = largestChildHeight;
                    } else if (lp.height == 0 && (!mAllowInconsistentMeasurement
                            || heightMode == MeasureSpec.EXACTLY)) {
                        // This child needs to be laid out from scratch using
                        // only its share of excess space.
@@ -1299,7 +1301,9 @@ public class LinearLayout extends ViewGroup {
                    remainingWeightSum -= childWeight;

                    final int childWidth;
                    if (lp.width == 0 && (!mAllowInconsistentMeasurement
                    if (mUseLargestChild && widthMode != MeasureSpec.EXACTLY) {
                        childWidth = largestChildWidth;
                    } else if (lp.width == 0 && (!mAllowInconsistentMeasurement
                            || widthMode == MeasureSpec.EXACTLY)) {
                        // This child needs to be laid out from scratch using
                        // only its share of excess space.