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

Commit 4198a8df authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Address remaining comment of ag/25829379" into main

parents 266ce9d0 362e4df1
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -107,17 +107,14 @@ private class PunchHoleNode(
    }

    override fun ContentDrawScope.draw() {
        val holeSize = size()
        if (holeSize == Size.Zero) {
            drawContent()
            return
        }

        drawContent()

        val holeSize = size()
        if (holeSize != Size.Zero) {
            val offset = offset()
            translate(offset.x, offset.y) { drawHole(holeSize) }
        }
    }

    private fun DrawScope.drawHole(size: Size) {
        if (shape == RectangleShape) {