Loading packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/PunchHole.kt +5 −8 Original line number Diff line number Diff line Loading @@ -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) { Loading Loading
packages/SystemUI/compose/scene/src/com/android/compose/animation/scene/PunchHole.kt +5 −8 Original line number Diff line number Diff line Loading @@ -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) { Loading