From dfce15322d57ced18a52ad5923450c5322459b8e Mon Sep 17 00:00:00 2001 From: kunfei Date: Thu, 24 Feb 2022 15:18:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= 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 | 2 +- build.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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'