From 57ce47134a088f84b63f8e7cc8d618807201aadd Mon Sep 17 00:00:00 2001 From: Philip Milne Date: Wed, 13 Feb 2013 22:07:50 +0000 Subject: 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 e5e0b7f191b64380e9231a2b755ecd3738598dec Change-Id: I1a35c12c3ca0b1eacfb0c1a4d6ba03601dab664b --- core/java/android/widget/GridLayout.java | 2 -- 1 file changed, 2 deletions(-) (limited to 'core/java') diff --git a/core/java/android/widget/GridLayout.java b/core/java/android/widget/GridLayout.java index 12cce8b..85ed8db 100644 --- a/core/java/android/widget/GridLayout.java +++ b/core/java/android/widget/GridLayout.java @@ -1235,7 +1235,6 @@ public class GridLayout extends ViewGroup { Assoc 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); -- cgit v1.1