summaryrefslogtreecommitdiffhomepage
path: root/android/src
diff options
context:
space:
mode:
authorJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-09-18 20:12:03 +0000
committerJanito Vaqueiro Ferreira Filho <janito@mullvad.net>2020-09-24 12:14:00 +0000
commit446d4f246605a530c2b4435db1b5268bce150966 (patch)
tree2a1c168ef9d78f622484402b10f3594b2298ed43 /android/src
parentc3f4fec179c2dc90911036d49f95d9dddbffa2c2 (diff)
downloadmullvadvpn-446d4f246605a530c2b4435db1b5268bce150966.tar.xz
mullvadvpn-446d4f246605a530c2b4435db1b5268bce150966.zip
Allow expanding country with cities but no relays
Diffstat (limited to 'android/src')
-rw-r--r--android/src/main/kotlin/net/mullvad/mullvadvpn/relaylist/RelayCountry.kt2
1 files changed, 1 insertions, 1 deletions
diff --git a/android/src/main/kotlin/net/mullvad/mullvadvpn/relaylist/RelayCountry.kt b/android/src/main/kotlin/net/mullvad/mullvadvpn/relaylist/RelayCountry.kt
index 084a899382..a6e4ac6673 100644
--- a/android/src/main/kotlin/net/mullvad/mullvadvpn/relaylist/RelayCountry.kt
+++ b/android/src/main/kotlin/net/mullvad/mullvadvpn/relaylist/RelayCountry.kt
@@ -15,7 +15,7 @@ class RelayCountry(
get() = cities.any { city -> city.active }
override val hasChildren
- get() = getRelayCount() > 0
+ get() = !cities.isEmpty()
override val visibleChildCount: Int
get() {