diff options
author | Philip Milne <pmilne@google.com> | 2013-02-13 22:07:50 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2013-02-13 22:07:50 +0000 |
commit | 57ce47134a088f84b63f8e7cc8d618807201aadd (patch) | |
tree | 02a902bbabba1cfc877b1b2802d72c674ef776fe /core/java | |
parent | e5e0b7f191b64380e9231a2b755ecd3738598dec (diff) | |
download | frameworks_base-57ce47134a088f84b63f8e7cc8d618807201aadd.zip frameworks_base-57ce47134a088f84b63f8e7cc8d618807201aadd.tar.gz frameworks_base-57ce47134a088f84b63f8e7cc8d618807201aadd.tar.bz2 |
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
Diffstat (limited to 'core/java')
-rw-r--r-- | core/java/android/widget/GridLayout.java | 2 |
1 files changed, 0 insertions, 2 deletions
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<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); |