summaryrefslogtreecommitdiff
path: root/app/src/production/java
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2020-07-24 18:38:45 +0200
committercyBerta <cyberta@riseup.net>2020-07-24 18:38:45 +0200
commit38f5720502fda7b89ce204fe4afdffa67ac0ae82 (patch)
treec3266b79c930a6a902814e6c58c457280ed67c2a /app/src/production/java
parentfa0ff0970173908acc9ab2b37d4d4cc2d67c1597 (diff)
try to fetch geoip service only if non-default url exists
Diffstat (limited to 'app/src/production/java')
-rw-r--r--app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java2
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;
}