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

Commit 2dcec3ce authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "avoid calculate shadow when elevation is 0"

parents 7c7f95f4 8975018f
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -41,6 +41,11 @@ public class RectShadowPainter {
            return;
        }

        if (elevation <= 0) {
            // If elevation is 0, we don't need to paint the shadow
            return;
        }

        Rect originCanvasRect = canvas.getClipBounds();
        int saved = modifyCanvas(canvas);
        if (saved == -1) {