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

Commit 452eec33 authored by Jim Miller's avatar Jim Miller Committed by Android (Google) Code Review
Browse files

Merge "Update GridLayout constructors to properly handle DEBUG=true"

parents 05c06de7 c655ba5e
Loading
Loading
Loading
Loading
+6 −7
Original line number Diff line number Diff line
@@ -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) {