diff options
Diffstat (limited to 'android/src')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsServerHolder.kt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsServerHolder.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsServerHolder.kt index 06fb4dcede..42a8a14d94 100644 --- a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsServerHolder.kt +++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/CustomDnsServerHolder.kt @@ -5,11 +5,12 @@ import android.widget.TextView import java.net.InetAddress import kotlin.properties.Delegates.observable import net.mullvad.mullvadvpn.R +import net.mullvad.talpid.util.addressString class CustomDnsServerHolder(view: View) : CustomDnsItemHolder(view) { private val label: TextView = view.findViewById(R.id.label) var serverAddress by observable<InetAddress?>(null) { _, _, address -> - label.text = address.toString() + label.text = address?.addressString() ?: "" } } |
