diff options
author | Parménides GV <parmegv@sdf.org> | 2014-04-24 00:51:57 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2014-04-24 00:51:57 +0200 |
commit | d141f09640b27cca6c635e83e91de9854f86330e (patch) | |
tree | 551d8458bf80421cfbdc4c5ec68bfbadacad65dc /app/src/debug/java | |
parent | 00030cd3b937b3be3ffbe8b390845371e7bd8aab (diff) | |
parent | e9fdf500fb3d8451c1feda27d9d97cbd41505a4e (diff) |
Merge branch 'develop' into release-0.5.1
Diffstat (limited to 'app/src/debug/java')
-rw-r--r-- | app/src/debug/java/se/leap/bitmaskclient/ProviderAPI.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/src/debug/java/se/leap/bitmaskclient/ProviderAPI.java b/app/src/debug/java/se/leap/bitmaskclient/ProviderAPI.java index 75ef511d..9f4b8d27 100644 --- a/app/src/debug/java/se/leap/bitmaskclient/ProviderAPI.java +++ b/app/src/debug/java/se/leap/bitmaskclient/ProviderAPI.java @@ -467,7 +467,7 @@ public class ProviderAPI extends IntentService { broadcast_progress(progress++); CA_CERT_DOWNLOADED = true; if(!PROVIDER_JSON_DOWNLOADED) - current_download = getAndSetProviderJson(last_provider_main_url); + current_download = getAndSetProviderJson(last_provider_main_url, last_danger_on); if(PROVIDER_JSON_DOWNLOADED || (current_download.containsKey(RESULT_KEY) && current_download.getBoolean(RESULT_KEY))) { broadcast_progress(progress++); PROVIDER_JSON_DOWNLOADED = true; @@ -518,11 +518,11 @@ public class ProviderAPI extends IntentService { return result; } - private Bundle getAndSetProviderJson(String provider_main_url) { + private Bundle getAndSetProviderJson(String provider_main_url, boolean danger_on) { Bundle result = new Bundle(); if(setting_up_provider) { - String provider_dot_json_string = downloadWithProviderCA(provider_main_url + "/provider.json", true); + String provider_dot_json_string = downloadWithCommercialCA(provider_main_url + "/provider.json", danger_on); try { JSONObject provider_json = new JSONObject(provider_dot_json_string); |