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/model/LocationConstraint.kt9
1 files changed, 4 insertions, 5 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/model/LocationConstraint.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/model/LocationConstraint.kt
index 998167468d..15937d7c67 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/model/LocationConstraint.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/model/LocationConstraint.kt
@@ -3,16 +3,15 @@ package net.mullvad.mullvadvpn.model
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
-sealed class LocationConstraint(val code: Array<String>) : Parcelable {
+sealed class LocationConstraint : Parcelable {
@Parcelize
- data class Country(val countryCode: String) :
- LocationConstraint(arrayOf(countryCode)), Parcelable
+ data class Country(val countryCode: String) : LocationConstraint(), Parcelable
@Parcelize
data class City(val countryCode: String, val cityCode: String) :
- LocationConstraint(arrayOf(countryCode, cityCode)), Parcelable
+ LocationConstraint(), Parcelable
@Parcelize
data class Hostname(val countryCode: String, val cityCode: String, val hostname: String) :
- LocationConstraint(arrayOf(countryCode, cityCode, hostname)), Parcelable
+ LocationConstraint(), Parcelable
}