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

Commit 86317536 authored by Evan Laird's avatar Evan Laird
Browse files

[battery] don't round the fill rect

The clip / rounded rects widths were swapped.

Test: visual
Bug: 400783306
Flag: com.android.settingslib.flags.new_status_bar_icons
Flag: com.android.systemui.status_bar_root_modernization
Change-Id: I8dc48c72cb0bb9505948e030c20fae8dd288db81
parent b36e398d
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),
                    )
                }