summaryrefslogtreecommitdiffhomepage
path: root/android/lib/ui
diff options
context:
space:
mode:
authorJonatan Rhodin <jonatan.rhodin@mullvad.net>2025-04-07 15:20:30 +0200
committerJonatan Rhodin <jonatan.rhodin@mullvad.net>2025-04-09 09:46:21 +0200
commit0db6e80bbc591eeefb2408fa2e335b2804135eb2 (patch)
tree3b465d233d94a4739f9a0850607fc0424c9cb8af /android/lib/ui
parent9a6938a4a32ecc162cc5afcf15fa636de2f9b9fe (diff)
downloadmullvadvpn-0db6e80bbc591eeefb2408fa2e335b2804135eb2.tar.xz
mullvadvpn-0db6e80bbc591eeefb2408fa2e335b2804135eb2.zip
Improve error message when an unavailable ip version is selected
Diffstat (limited to 'android/lib/ui')
-rw-r--r--android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/NotificationData.kt4
1 files changed, 3 insertions, 1 deletions
diff --git a/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/NotificationData.kt b/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/NotificationData.kt
index c7fdad4793..b022ca8c07 100644
--- a/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/NotificationData.kt
+++ b/android/lib/ui/component/src/main/kotlin/net/mullvad/mullvadvpn/lib/ui/component/NotificationData.kt
@@ -237,8 +237,10 @@ private fun ParameterGenerationError.errorMessageId(): Int =
R.string.no_matching_relay
}
ParameterGenerationError.NoWireguardKey -> R.string.no_wireguard_key
- ParameterGenerationError.CustomTunnelHostResultionError ->
+ ParameterGenerationError.CustomTunnelHostResolutionError ->
R.string.custom_tunnel_host_resolution_error
+ ParameterGenerationError.Ipv4_Unavailable -> R.string.ip_version_v4_unavailable
+ ParameterGenerationError.Ipv6_Unavailable -> R.string.ip_version_v6_unavailable
}
private fun InetAddress.addressString(): String {