From dfe2edaf84a23ccbe1941a437c2222f55870295f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20G=C3=B6ransson?= Date: Tue, 29 Oct 2024 11:19:03 +0100 Subject: [PATCH] Collapse when statement --- .../compose/screen/ApiAccessMethodDetailsScreen.kt | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ApiAccessMethodDetailsScreen.kt b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ApiAccessMethodDetailsScreen.kt index eea90680ba39..35c4c8a444ff 100644 --- a/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ApiAccessMethodDetailsScreen.kt +++ b/android/app/src/main/kotlin/net/mullvad/mullvadvpn/compose/screen/ApiAccessMethodDetailsScreen.kt @@ -256,11 +256,10 @@ private fun Content( onCellClicked = onEnableClicked, onInfoClicked = when (state.apiAccessMethod) { - ApiAccessMethod.Bridges -> null - is ApiAccessMethod.CustomProxy.Shadowsocks -> null - is ApiAccessMethod.CustomProxy.Socks5Remote -> null - ApiAccessMethod.Direct -> null ApiAccessMethod.EncryptedDns -> onNavigateToEncryptedDnsInfoDialog + ApiAccessMethod.Bridges, + is ApiAccessMethod.CustomProxy, + ApiAccessMethod.Direct -> null }, ) if (!state.isDisableable) {