|
|
@ -128,13 +128,16 @@ class WebService : BaseService() { |
|
|
|
|
|
|
|
|
|
|
|
private fun upTile(active: Boolean) { |
|
|
|
private fun upTile(active: Boolean) { |
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { |
|
|
|
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { |
|
|
|
startService<WebTileService> { |
|
|
|
kotlin.runCatching { |
|
|
|
action = if (active) { |
|
|
|
startService<WebTileService> { |
|
|
|
IntentAction.start |
|
|
|
action = if (active) { |
|
|
|
} else { |
|
|
|
IntentAction.start |
|
|
|
IntentAction.stop |
|
|
|
} else { |
|
|
|
|
|
|
|
IntentAction.stop |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|