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/production | |
parent | fa0ff0970173908acc9ab2b37d4d4cc2d67c1597 (diff) |
try to fetch geoip service only if non-default url exists
Diffstat (limited to 'app/src/production')
-rw-r--r-- | app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java b/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java index e5d5bd0e..04ffe9e6 100644 --- a/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java +++ b/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java @@ -225,7 +225,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; } |