pull/1198/head
gedoor 3 years ago
parent 372d7f1776
commit e7715838b7
  1. 4
      app/src/main/java/io/legado/app/service/WebTileService.kt

@ -32,6 +32,7 @@ class WebTileService : TileService() {
} }
override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int { override fun onStartCommand(intent: Intent?, flags: Int, startId: Int): Int {
try {
when (intent?.action) { when (intent?.action) {
IntentAction.start -> { IntentAction.start -> {
qsTile.state = Tile.STATE_ACTIVE qsTile.state = Tile.STATE_ACTIVE
@ -42,6 +43,9 @@ class WebTileService : TileService() {
qsTile.updateTile() qsTile.updateTile()
} }
} }
} catch (e: Exception) {
e.printStackTrace()
}
return super.onStartCommand(intent, flags, startId) return super.onStartCommand(intent, flags, startId)
} }

Loading…
Cancel
Save