This commit is contained in:
Mygod
2020-02-08 04:12:45 +08:00
parent 1507050eea
commit cae191b991
6 changed files with 38 additions and 26 deletions

View File

@@ -178,8 +178,7 @@ class ClientsFragment : Fragment() {
override fun onBindViewHolder(holder: ClientViewHolder, position: Int) {
val client = getItem(position)
holder.binding.client = client
holder.binding.rate =
rates.computeIfAbsent(Pair(client.iface, client.mac)) { TrafficRate() }
holder.binding.rate = rates.computeIfAbsent(Pair(client.iface, client.mac)) { TrafficRate() }
holder.binding.executePendingBindings()
}