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

Commit 57ce4713 authored by Philip Milne's avatar Philip Milne Committed by Android (Google) Code Review
Browse files

Revert "Fix for bug: 8184401 - GridLayout accounts for child's...

Revert "Fix for bug: 8184401 - GridLayout accounts for child's size/measurements even when a child is "GONE""

Suspected cause of: http://b.corp.google.com/issue?id=8192858 

This reverts commit e5e0b7f1

Change-Id: I1a35c12c3ca0b1eacfb0c1a4d6ba03601dab664b
parent e5e0b7f1
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -1235,7 +1235,6 @@ public class GridLayout extends ViewGroup {
            Assoc<Spec, Bounds> assoc = Assoc.of(Spec.class, Bounds.class);
            for (int i = 0, N = getChildCount(); i < N; i++) {
                View c = getChildAt(i);
                if (c.getVisibility() == View.GONE) continue;
                LayoutParams lp = getLayoutParams(c);
                Spec spec = horizontal ? lp.columnSpec : lp.rowSpec;
                Bounds bounds = getAlignment(spec.alignment, horizontal).getBounds();
@@ -1251,7 +1250,6 @@ public class GridLayout extends ViewGroup {
            }
            for (int i = 0, N = getChildCount(); i < N; i++) {
                View c = getChildAt(i);
                if (c.getVisibility() == View.GONE) continue;
                LayoutParams lp = getLayoutParams(c);
                Spec spec = horizontal ? lp.columnSpec : lp.rowSpec;
                groupBounds.getValue(i).include(GridLayout.this, c, spec, this);