Fix crash when tile unconnected
This commit is contained in:
@@ -53,6 +53,7 @@ class RepeaterTileService : TileService(), ServiceConnection {
|
||||
}
|
||||
|
||||
private fun updateTile() {
|
||||
val qsTile = qsTile ?: return
|
||||
when (binder?.service?.status) {
|
||||
RepeaterService.Status.IDLE -> {
|
||||
qsTile.state = Tile.STATE_INACTIVE
|
||||
|
||||
Reference in New Issue
Block a user