summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
Diffstat (limited to 'android/src')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/LocationInfo.kt12
1 files changed, 6 insertions, 6 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/LocationInfo.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/LocationInfo.kt
index 74e826261d..41678fe1ce 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/LocationInfo.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/LocationInfo.kt
@@ -6,14 +6,14 @@ import android.widget.TextView
import net.mullvad.mullvadvpn.model.GeoIpLocation
class LocationInfo(val parentView: View) {
- private val countryLabel: TextView = parentView.findViewById(R.id.country)
- private val cityLabel: TextView = parentView.findViewById(R.id.city)
- private val hostnameLabel: TextView = parentView.findViewById(R.id.hostname)
+ private val country: TextView = parentView.findViewById(R.id.country)
+ private val city: TextView = parentView.findViewById(R.id.city)
+ private val hostname: TextView = parentView.findViewById(R.id.hostname)
var location: GeoIpLocation? = null
set(value) {
- countryLabel.text = value?.country ?: ""
- cityLabel.text = value?.city ?: ""
- hostnameLabel.text = value?.hostname ?: ""
+ country.text = value?.country ?: ""
+ city.text = value?.city ?: ""
+ hostname.text = value?.hostname ?: ""
}
}