mirror of
https://github.com/gedoor/legado.git
synced 2025-01-08 11:47:32 +08:00
优化
This commit is contained in:
parent
1a978516b8
commit
5a2234258c
@ -128,13 +128,16 @@ class WebService : BaseService() {
|
||||
|
||||
private fun upTile(active: Boolean) {
|
||||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) {
|
||||
startService<WebTileService> {
|
||||
action = if (active) {
|
||||
IntentAction.start
|
||||
} else {
|
||||
IntentAction.stop
|
||||
kotlin.runCatching {
|
||||
startService<WebTileService> {
|
||||
action = if (active) {
|
||||
IntentAction.start
|
||||
} else {
|
||||
IntentAction.stop
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user