diff options
author | Jim Miller <jaggies@google.com> | 2011-06-16 17:33:20 -0700 |
---|---|---|
committer | Jim Miller <jaggies@google.com> | 2011-06-16 17:33:20 -0700 |
commit | c655ba5e467090eb4f839f148ac31b50c389ffb2 (patch) | |
tree | 760eae4a3180642d2c694939688da55f7e14ce02 /core/java/android | |
parent | 576715c75987b64eff120f8800862815753b0c8a (diff) | |
download | frameworks_base-c655ba5e467090eb4f839f148ac31b50c389ffb2.zip frameworks_base-c655ba5e467090eb4f839f148ac31b50c389ffb2.tar.gz frameworks_base-c655ba5e467090eb4f839f148ac31b50c389ffb2.tar.bz2 |
Update GridLayout constructors to properly handle DEBUG=true
This fixes a case where the grid layout debugging wasn't showing.
Change-Id: I28b2754d2d824731e24126300bc501ae2e379ee4
Diffstat (limited to 'core/java/android')
-rw-r--r-- | core/java/android/widget/GridLayout.java | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/core/java/android/widget/GridLayout.java b/core/java/android/widget/GridLayout.java index 092c2f7..d68dde9 100644 --- a/core/java/android/widget/GridLayout.java +++ b/core/java/android/widget/GridLayout.java @@ -189,10 +189,7 @@ public class GridLayout extends ViewGroup { * {@inheritDoc} */ public GridLayout(Context context) { - super(context); - if (DEBUG) { - setWillNotDraw(false); - } + this(context, null, 0); } /** @@ -200,6 +197,9 @@ public class GridLayout extends ViewGroup { */ public GridLayout(Context context, AttributeSet attrs, int defStyle) { super(context, attrs, defStyle); + if (DEBUG) { + setWillNotDraw(false); + } processAttributes(context, attrs); } @@ -207,8 +207,7 @@ public class GridLayout extends ViewGroup { * {@inheritDoc} */ public GridLayout(Context context, AttributeSet attrs) { - super(context, attrs); - processAttributes(context, attrs); + this(context, attrs, 0); } private void processAttributes(Context context, AttributeSet attrs) { |