Migrate to LiveData
Benefit includes: no more flush after changing nickname. Yep.
This commit is contained in:
@@ -40,7 +40,7 @@ class ClientViewModel : ViewModel(), ServiceConnection, IpNeighbourMonitor.Callb
|
||||
var client = clients[key]
|
||||
if (client == null) {
|
||||
if (!tetheredInterfaces.contains(neighbour.dev)) continue
|
||||
client = TetheringClient(neighbour)
|
||||
client = Client(neighbour.lladdr, neighbour.dev)
|
||||
clients[key] = client
|
||||
}
|
||||
client.ip += Pair(neighbour.ip, neighbour.state)
|
||||
|
||||
Reference in New Issue
Block a user