Fix concurrent modifications to routings

This commit is contained in:
Mygod
2018-04-04 17:54:23 -07:00
parent 65d7a7487a
commit 206e339019
2 changed files with 29 additions and 20 deletions

View File

@@ -31,7 +31,7 @@ class TetheringFragment : Fragment(), ServiceConnection {
inner class Data(val iface: TetheredInterface) : BaseObservable() {
val icon: Int get() = TetherType.ofInterface(iface.name).icon
val active = binder?.active?.contains(iface.name) == true
val active = binder?.isActive(iface.name) == true
}
private class InterfaceViewHolder(val binding: ListitemInterfaceBinding) : RecyclerView.ViewHolder(binding.root),