Skip to content
This repository was archived by the owner on Oct 26, 2023. It is now read-only.

Commit a0194ca

Browse files
author
胡晟昊
committed
Merge branch 'hotfix/4.0.1'
2 parents 8063228 + 7b66d19 commit a0194ca

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

app/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ android {
2929
applicationId = "com.dede.nativetools"
3030
minSdk = 23
3131
targetSdk = 33
32-
versionCode = 63
33-
versionName = "4.0.0"
32+
versionCode = 64
33+
versionName = "4.0.1"
3434
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
3535

3636
resourceConfigurations.addAll(

app/src/main/java/com/dede/nativetools/netspeed/service/NetSpeedService.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,8 @@ class NetSpeedService : Service(), Runnable {
183183
override fun onDestroy() {
184184
lifecycleJob.cancel()
185185
netSpeedCompute.destroy()
186-
stopForeground(STOP_FOREGROUND_REMOVE)
186+
@Suppress("DEPRECATION")
187+
stopForeground(true)
187188
notificationManager.cancel(NetSpeedNotificationHelper.NOTIFICATION_ID)
188189
broadcastHelper.unregister(this)
189190
super.onDestroy()

app/src/main/java/com/dede/nativetools/netspeed/typeface/TypefaceGetter.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ interface TypefaceGetter {
3636
if (fontList.contains(key)) {
3737
DownloadTypefaceImpl(appContext, "$key.ttf")
3838
} else {
39-
throw IllegalStateException("Unknown font name: $key")
39+
NormalTypeface()
40+
//throw IllegalStateException("Unknown font name: $key")
4041
}
4142
}
4243
}

0 commit comments

Comments
 (0)