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

Commit e0ce56d9 authored by Evan Laird's avatar Evan Laird Committed by Android (Google) Code Review
Browse files

Merge "[battery] don't round the fill rect" into main

parents 38c64ff0 86317536
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -92,11 +92,11 @@ fun BatteryCanvas(
                    }
                drawPath(path.path, bgColor)
                // Then draw the body, clipped to the fill level
                clipRect(0f, 0f, innerWidth, innerHeight) {
                clipRect(0f, 0f, level.scaledLevel(), innerHeight) {
                    drawRoundRect(
                        color = colors.fill,
                        topLeft = Offset.Zero,
                        size = Size(width = level.scaledLevel(), height = innerHeight),
                        size = Size(width = innerWidth, height = innerHeight),
                        cornerRadius = CornerRadius(2f),
                    )
                }