diff --git a/app/src/main/java/io/legado/app/ui/widget/BatteryView.kt b/app/src/main/java/io/legado/app/ui/widget/BatteryView.kt index a51e250f7..f11db64e8 100644 --- a/app/src/main/java/io/legado/app/ui/widget/BatteryView.kt +++ b/app/src/main/java/io/legado/app/ui/widget/BatteryView.kt @@ -42,7 +42,12 @@ class BatteryView(context: Context, attrs: AttributeSet?) : AppCompatTextView(co layout.getLineBottom(0) - 2.dp ) val dj = (outFrame.bottom - outFrame.top) / 3 - polar.set(outFrame.right, outFrame.top + dj, width - 1.dp, outFrame.bottom - dj) + polar.set( + outFrame.right, + outFrame.top + dj, + width - 1.dp, + outFrame.bottom - dj + ) batteryPaint.style = Paint.Style.STROKE canvas.drawRect(outFrame, batteryPaint) batteryPaint.style = Paint.Style.FILL