Lazily start IpNeighbourMonitor in qs tiles

This commit is contained in:
Mygod
2020-06-20 23:43:20 -04:00
parent 72d79ed822
commit 490f6c5115
4 changed files with 21 additions and 2 deletions

View File

@@ -92,6 +92,7 @@ sealed class TetheringTileService : IpNeighbourMonitoringTileService(), Tetherin
state = Tile.STATE_ACTIVE
icon = if (interested.all(binder::isActive)) tileOn else tileOff
subtitleDevices(interested::contains)
listenForClients()
}
}
label = getText(labelString)
@@ -179,6 +180,7 @@ sealed class TetheringTileService : IpNeighbourMonitoringTileService(), Tetherin
state = Tile.STATE_ACTIVE
icon = if (interested.isNotEmpty() && interested.all(binder::isActive)) tileOn else tileOff
subtitleDevices(interested::contains)
listenForClients()
}
false -> {
state = Tile.STATE_INACTIVE