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

Commit 5247f5b0 authored by Sunny Goyal's avatar Sunny Goyal
Browse files

Fixing preview for newly created folder not getting clipped properly.

When a new folder was created, isClipping was set to false so that the stroke is
drawn behind the previewItems, but it was never reset to true.

Bug: 37654209
Change-Id: I03e94008dd19d8c5a0acb61207ebac33860fdf1d
parent efbfcb83
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -306,6 +306,7 @@ public class PreviewBackground {
    // It is the callers responsibility to save and restore the canvas layers.
    void clipCanvasHardware(Canvas canvas) {
        mPaint.setColor(Color.BLACK);
        mPaint.setStyle(Paint.Style.FILL);
        mPaint.setXfermode(mClipPorterDuffXfermode);

        float radius = getScaledRadius();
@@ -336,6 +337,7 @@ public class PreviewBackground {
        }

        mDrawingDelegate = null;
        isClipping = true;
        invalidate();
    }