diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-09-16 10:37:21 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2020-09-16 10:37:21 +0200 |
commit | 8b9a40b3d751cf723c822e3ca317735a99f09cab (patch) | |
tree | 22889ac77bc8a52f1f759cf5f35aa135e803db3a /ui/src/main/java/com/wireguard/android/preference | |
parent | 4b36df504c13dbd8cbcdc2f8a324d07a1e5b3837 (diff) |
global: lint codebase with recent changes
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'ui/src/main/java/com/wireguard/android/preference')
-rw-r--r-- | ui/src/main/java/com/wireguard/android/preference/KernelModuleDisablerPreference.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/src/main/java/com/wireguard/android/preference/KernelModuleDisablerPreference.kt b/ui/src/main/java/com/wireguard/android/preference/KernelModuleDisablerPreference.kt index 04894b14..3d47d2ea 100644 --- a/ui/src/main/java/com/wireguard/android/preference/KernelModuleDisablerPreference.kt +++ b/ui/src/main/java/com/wireguard/android/preference/KernelModuleDisablerPreference.kt @@ -26,6 +26,7 @@ import kotlin.system.exitProcess class KernelModuleDisablerPreference(context: Context, attrs: AttributeSet?) : Preference(context, attrs) { private var state = State.UNKNOWN + init { isVisible = false lifecycleScope.launch { @@ -48,7 +49,7 @@ class KernelModuleDisablerPreference(context: Context, attrs: AttributeSet?) : P } lifecycleScope.launch { val observableTunnels = Application.getTunnelManager().getTunnels() - val downings = observableTunnels.map { async(SupervisorJob()) { it.setStateAsync(Tunnel.State.DOWN) } } + val downings = observableTunnels.map { async(SupervisorJob()) { it.setStateAsync(Tunnel.State.DOWN) } } try { downings.awaitAll() withContext(Dispatchers.IO) { |