diff options
| author | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2021-02-05 20:45:56 +0000 |
|---|---|---|
| committer | Janito Vaqueiro Ferreira Filho <janito@mullvad.net> | 2021-02-08 15:30:37 +0000 |
| commit | 29545b3fab2885c2e2e2c83a9663a7da502cbc5d (patch) | |
| tree | 0faad4a1ef6eea973ae6920e8009f071ad55a777 /android/src | |
| parent | ee1eab3ebb1bb57cd6b02d63220d73dcef51d12b (diff) | |
| download | mullvadvpn-29545b3fab2885c2e2e2c83a9663a7da502cbc5d.tar.xz mullvadvpn-29545b3fab2885c2e2e2c83a9663a7da502cbc5d.zip | |
Remove property that's only used for construction
Diffstat (limited to 'android/src')
| -rw-r--r-- | android/src/main/kotlin/net/mullvad/mullvadvpn/ui/customdns/EditCustomDnsServerHolder.kt | 5 |
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 -> |
