From c655ba5e467090eb4f839f148ac31b50c389ffb2 Mon Sep 17 00:00:00 2001 From: Jim Miller Date: Thu, 16 Jun 2011 17:33:20 -0700 Subject: Update GridLayout constructors to properly handle DEBUG=true This fixes a case where the grid layout debugging wasn't showing. Change-Id: I28b2754d2d824731e24126300bc501ae2e379ee4 --- core/java/android/widget/GridLayout.java | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'core/java/android/widget') 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) { -- cgit v1.1