Simplify TetheringFragment.Data.active

This commit is contained in:
Mygod
2018-01-13 13:52:49 +08:00
parent c239ad1f61
commit aeab1059b4

View File

@@ -66,7 +66,7 @@ class TetheringFragment : Fragment() {
bluetoothRegexes.any { it.matcher(iface).matches() } -> R.drawable.ic_device_bluetooth
else -> R.drawable.ic_device_wifi_tethering
}
var active = TetheringService.active?.contains(iface) == true
var active = TetheringService.active.contains(iface)
}
class InterfaceViewHolder(val binding: ListitemInterfaceBinding) : RecyclerView.ViewHolder(binding.root),