summaryrefslogtreecommitdiff
path: root/app/src/insecure
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/insecure
parentfa0ff0970173908acc9ab2b37d4d4cc2d67c1597 (diff)
try to fetch geoip service only if non-default url exists
Diffstat (limited to 'app/src/insecure')
-rw-r--r--app/src/insecure/java/se/leap/bitmaskclient/ProviderApiManager.java2
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;
}