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

Commit ba78a04c authored by Jeff DeCew's avatar Jeff DeCew
Browse files

NSSL Debug lines now also draws the clip path

Test: manual
Flag: NONE
Change-Id: I2fa65afb1366129602421a2ec42a1fc162b73173
parent 85c6acea
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -812,6 +812,10 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
        } else {
            mDebugTextUsedYPositions.clear();
        }

        mDebugPaint.setColor(Color.DKGRAY);
        canvas.drawPath(mRoundedClipPath, mDebugPaint);

        int y = 0;
        drawDebugInfo(canvas, y, Color.RED, /* label= */ "y = " + y);

@@ -843,14 +847,14 @@ public class NotificationStackScrollLayout extends ViewGroup implements Dumpable
        drawDebugInfo(canvas, y, Color.LTGRAY,
                /* label= */ "mAmbientState.getStackY() + mAmbientState.getStackHeight() = " + y);

        y = (int) mAmbientState.getStackY() + mContentHeight;
        drawDebugInfo(canvas, y, Color.MAGENTA,
                /* label= */ "mAmbientState.getStackY() + mContentHeight = " + y);

        y = (int) (mAmbientState.getStackY() + mIntrinsicContentHeight);
        drawDebugInfo(canvas, y, Color.YELLOW,
                /* label= */ "mAmbientState.getStackY() + mIntrinsicContentHeight = " + y);

        y = mContentHeight;
        drawDebugInfo(canvas, y, Color.MAGENTA,
                /* label= */ "mContentHeight = " + y);

        drawDebugInfo(canvas, mRoundedRectClippingBottom, Color.DKGRAY,
                /* label= */ "mRoundedRectClippingBottom) = " + y);
    }