Loading packages/SystemUI/src/com/android/systemui/statusbar/pipeline/battery/ui/composable/UnifiedBattery.kt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -92,11 +92,11 @@ fun BatteryCanvas( } } drawPath(path.path, bgColor) drawPath(path.path, bgColor) // Then draw the body, clipped to the fill level // Then draw the body, clipped to the fill level clipRect(0f, 0f, innerWidth, innerHeight) { clipRect(0f, 0f, level.scaledLevel(), innerHeight) { drawRoundRect( drawRoundRect( color = colors.fill, color = colors.fill, topLeft = Offset.Zero, topLeft = Offset.Zero, size = Size(width = level.scaledLevel(), height = innerHeight), size = Size(width = innerWidth, height = innerHeight), cornerRadius = CornerRadius(2f), cornerRadius = CornerRadius(2f), ) ) } } Loading Loading
packages/SystemUI/src/com/android/systemui/statusbar/pipeline/battery/ui/composable/UnifiedBattery.kt +2 −2 Original line number Original line Diff line number Diff line Loading @@ -92,11 +92,11 @@ fun BatteryCanvas( } } drawPath(path.path, bgColor) drawPath(path.path, bgColor) // Then draw the body, clipped to the fill level // Then draw the body, clipped to the fill level clipRect(0f, 0f, innerWidth, innerHeight) { clipRect(0f, 0f, level.scaledLevel(), innerHeight) { drawRoundRect( drawRoundRect( color = colors.fill, color = colors.fill, topLeft = Offset.Zero, topLeft = Offset.Zero, size = Size(width = level.scaledLevel(), height = innerHeight), size = Size(width = innerWidth, height = innerHeight), cornerRadius = CornerRadius(2f), cornerRadius = CornerRadius(2f), ) ) } } Loading