We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 52efdbe + 35b07a3 commit 30f79d8Copy full SHA for 30f79d8
android/app/src/main/kotlin/net/mullvad/mullvadvpn/viewmodel/SplitTunnelingViewModelState.kt
@@ -22,16 +22,18 @@ data class SplitTunnelingViewModelState(
22
?.let { (excluded, included) ->
23
SplitTunnelingUiState.ShowAppList(
24
enabled = enabled,
25
- excludedApps = excluded.sortedBy { it.name },
+ excludedApps = excluded.sort(),
26
includedApps =
27
if (showSystemApps) {
28
included
29
} else {
30
included.filter { appData -> !appData.isSystemApp }
31
}
32
- .sortedBy { it.name },
+ .sort(),
33
showSystemApps = showSystemApps
34
)
35
} ?: SplitTunnelingUiState.Loading(enabled = enabled)
36
37
38
+
39
+private fun List<AppData>.sort() = sortedBy { it.name.lowercase() }
0 commit comments