From 19e2fa92c92ef9ca4366a33b94288910676f8eef Mon Sep 17 00:00:00 2001 From: kunfei Date: Mon, 9 Mar 2020 09:42:33 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/widget/BatteryView.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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