From 5fd9cd738f26797cf16576bf4011852c9f3052a8 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Mon, 20 May 2019 23:58:26 +0200 Subject: improve provider json validation during setup --- app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/src/production') diff --git a/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java b/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java index fe7e2491..cdbe5f60 100644 --- a/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java +++ b/app/src/production/java/se/leap/bitmaskclient/ProviderApiManager.java @@ -84,13 +84,13 @@ public class ProviderApiManager extends ProviderApiManagerBase { getPersistedProviderUpdates(provider); currentDownload = validateProviderDetails(provider); - //provider details invalid + //provider certificate invalid if (currentDownload.containsKey(ERRORS)) { currentDownload.putParcelable(PROVIDER_KEY, provider); return currentDownload; } - //no provider certificate available + //no provider json or certificate available if (currentDownload.containsKey(BROADCAST_RESULT_KEY) && !currentDownload.getBoolean(BROADCAST_RESULT_KEY)) { resetProviderDetails(provider); } -- cgit v1.2.3