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

Commit c655ba5e authored by Jim Miller's avatar Jim Miller
Browse files

Update GridLayout constructors to properly handle DEBUG=true

This fixes a case where the grid layout debugging wasn't showing.

Change-Id: I28b2754d2d824731e24126300bc501ae2e379ee4
parent 576715c7
Loading
Loading
Loading
Loading
+5 −6
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) {