diff options
author | cyBerta <cyberta@riseup.net> | 2020-07-24 18:38:45 +0200 |
---|---|---|
committer | cyBerta <cyberta@riseup.net> | 2020-07-24 18:38:45 +0200 |
commit | 38f5720502fda7b89ce204fe4afdffa67ac0ae82 (patch) | |
tree | c3266b79c930a6a902814e6c58c457280ed67c2a /app/src/insecure/java/se/leap | |
parent | fa0ff0970173908acc9ab2b37d4d4cc2d67c1597 (diff) |
try to fetch geoip service only if non-default url exists
Diffstat (limited to 'app/src/insecure/java/se/leap')
-rw-r--r-- | app/src/insecure/java/se/leap/bitmaskclient/ProviderApiManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/insecure/java/se/leap/bitmaskclient/ProviderApiManager.java b/app/src/insecure/java/se/leap/bitmaskclient/ProviderApiManager.java index ba226957..a111e907 100644 --- a/app/src/insecure/java/se/leap/bitmaskclient/ProviderApiManager.java +++ b/app/src/insecure/java/se/leap/bitmaskclient/ProviderApiManager.java @@ -239,7 +239,7 @@ public class ProviderApiManager extends ProviderApiManagerBase { protected Bundle getGeoIPJson(Provider provider) { Bundle result = new Bundle(); - if (!provider.shouldUpdateGeoIpJson()) { + if (!provider.shouldUpdateGeoIpJson() || provider.getGeoipUrl().isDefault()) { result.putBoolean(BROADCAST_RESULT_KEY, false); return result; } |