From aeab1059b47e4a2ac250e7b0eeb5879e69e28833 Mon Sep 17 00:00:00 2001 From: Mygod Date: Sat, 13 Jan 2018 13:52:49 +0800 Subject: [PATCH] Simplify TetheringFragment.Data.active --- mobile/src/main/java/be/mygod/vpnhotspot/TetheringFragment.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mobile/src/main/java/be/mygod/vpnhotspot/TetheringFragment.kt b/mobile/src/main/java/be/mygod/vpnhotspot/TetheringFragment.kt index 707cc60e..eaf91c36 100644 --- a/mobile/src/main/java/be/mygod/vpnhotspot/TetheringFragment.kt +++ b/mobile/src/main/java/be/mygod/vpnhotspot/TetheringFragment.kt @@ -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),