summaryrefslogtreecommitdiffhomepage
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/EditCustomDnsServerHolder.kt5
1 files changed, 2 insertions, 3 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/EditCustomDnsServerHolder.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/EditCustomDnsServerHolder.kt
index 5c0c436a8a..5dae78afcf 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/EditCustomDnsServerHolder.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/EditCustomDnsServerHolder.kt
@@ -16,9 +16,8 @@ class EditCustomDnsServerHolder(view: View, adapter: CustomDnsAdapter) : CustomD
Error,
}
- private val context = view.context
- private val errorColor = context.getColor(R.color.red)
- private val normalColor = context.getColor(R.color.blue)
+ private val errorColor = view.context.getColor(R.color.red)
+ private val normalColor = view.context.getColor(R.color.blue)
private val input: EditText = view.findViewById<EditText>(R.id.input).apply {
onFocusChangeListener = OnFocusChangeListener { _, hasFocus ->