pull/1649/head
kunfei 3 years ago
parent ea3550a622
commit 2530137b1d
  1. 6
      app/src/main/java/io/legado/app/ui/widget/BatteryView.kt

@ -34,7 +34,7 @@ class BatteryView @JvmOverloads constructor(
private var batteryWidth = 0 private var batteryWidth = 0
init { init {
setPadding(4.dp, 2.dp, 6.dp, 2.dp) setPadding(4.dp, 3.dp, 6.dp, 3.dp)
batteryPaint.strokeWidth = 1.dp.toFloat() batteryPaint.strokeWidth = 1.dp.toFloat()
batteryPaint.isAntiAlias = true batteryPaint.isAntiAlias = true
batteryPaint.color = paint.color batteryPaint.color = paint.color
@ -77,9 +77,9 @@ class BatteryView @JvmOverloads constructor(
.toInt() + 6.dp .toInt() + 6.dp
outFrame.set( outFrame.set(
batteryStart, batteryStart,
1.dp, 2.dp,
batteryEnd, batteryEnd,
height - 1.dp height - 2.dp
) )
val dj = (outFrame.bottom - outFrame.top) / 3 val dj = (outFrame.bottom - outFrame.top) / 3
polar.set( polar.set(

Loading…
Cancel
Save