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 6d313db51..ee89e04e6 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 @@ -67,7 +67,7 @@ class BatteryView @JvmOverloads constructor( layout.getLineBounds(0, outFrame) val batteryStart = layout .getPrimaryHorizontal(text.length - battery.toString().length) - .toInt() + 3.dp + .toInt() + 2.dp val batteryEnd = batteryStart + StaticLayout.getDesiredWidth(battery.toString(), paint).toInt() + 4.dp outFrame.set( diff --git a/build.gradle b/build.gradle index 242612614..933a8c530 100644 --- a/build.gradle +++ b/build.gradle @@ -13,7 +13,7 @@ buildscript { //maven { url 'https://maven.aliyun.com/repository/gradle-plugin' } } dependencies { - classpath 'com.android.tools.build:gradle:7.1.1' + classpath 'com.android.tools.build:gradle:7.1.2' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" classpath 'de.timfreiheit.resourceplaceholders:placeholders:0.4' classpath 'de.undercouch:gradle-download-task:4.1.2'