diff --git a/app/src/main/java/io/legado/app/service/WebService.kt b/app/src/main/java/io/legado/app/service/WebService.kt index 25fc5298a..676cba0bc 100644 --- a/app/src/main/java/io/legado/app/service/WebService.kt +++ b/app/src/main/java/io/legado/app/service/WebService.kt @@ -128,13 +128,16 @@ class WebService : BaseService() { private fun upTile(active: Boolean) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { - startService { - action = if (active) { - IntentAction.start - } else { - IntentAction.stop + kotlin.runCatching { + startService { + action = if (active) { + IntentAction.start + } else { + IntentAction.stop + } } } + } } }