From 8c08466ed6e0ed38adca3d72ee9a8eb56ec42eb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B9=8C=E5=A0=86=E5=B0=8F=E9=80=8F=E6=98=8E?= Date: Mon, 21 Mar 2022 15:47:51 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BD=91=E9=80=9F=E5=8D=95?= =?UTF-8?q?=E4=BD=8DKB/MB=E6=98=BE=E7=A4=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hook/app/systemui/DoubleLineNetworkSpeed.kt | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/com/lt2333/simplicitytools/hook/app/systemui/DoubleLineNetworkSpeed.kt b/app/src/main/java/com/lt2333/simplicitytools/hook/app/systemui/DoubleLineNetworkSpeed.kt index d6fabb87..028c106d 100644 --- a/app/src/main/java/com/lt2333/simplicitytools/hook/app/systemui/DoubleLineNetworkSpeed.kt +++ b/app/src/main/java/com/lt2333/simplicitytools/hook/app/systemui/DoubleLineNetworkSpeed.kt @@ -87,11 +87,11 @@ class DoubleLineNetworkSpeed : IXposedHookLoadPackage { if (bytes >= 1048576) { totalUpSpeed = DecimalFormat("0.0").format(bytes / 1048576).toFloat() - unit = context.resources.getString(context.resources.getIdentifier("kilobyte_per_second","string",context.packageName)) + unit = context.resources.getString(context.resources.getIdentifier("megabyte_per_second","string",context.packageName)) } else { totalUpSpeed = DecimalFormat("0.0").format(bytes / 1024).toFloat() - unit = context.resources.getString(context.resources.getIdentifier("megabyte_per_second","string",context.packageName)) + unit = context.resources.getString(context.resources.getIdentifier("kilobyte_per_second","string",context.packageName)) } //保存当前的流量总和和上次的时间戳 @@ -120,11 +120,11 @@ class DoubleLineNetworkSpeed : IXposedHookLoadPackage { if (bytes >= 1048576) { totalDownSpeed = DecimalFormat("0.0").format(bytes / 1048576).toFloat() - unit = context.resources.getString(context.resources.getIdentifier("kilobyte_per_second","string",context.packageName)) + unit = context.resources.getString(context.resources.getIdentifier("megabyte_per_second","string",context.packageName)) } else { totalDownSpeed = DecimalFormat("0.0").format(bytes / 1024).toFloat() - unit = context.resources.getString(context.resources.getIdentifier("megabyte_per_second","string",context.packageName)) + unit = context.resources.getString(context.resources.getIdentifier("kilobyte_per_second","string",context.packageName)) } //保存当前的流量总和和上次的时间戳 mLastTotalDown = currentTotalRxBytes