summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-07-16 19:52:34 +0200
committerParménides GV <parmegv@sdf.org>2013-07-20 12:03:49 +0200
commit5ed843dd7dfdddc9c64568a464ed550ba2185ac9 (patch)
treece562f0e160fc39d073473a8321b572d32900045
parent492f353e790875da560d8b29bac86e7db0db8922 (diff)
Certificate message shown when appropiate.
Only if all downloading methods fail and the last one throws an IOException, the certificate error message toast is shown.
-rw-r--r--src/se/leap/leapclient/ProviderAPI.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/se/leap/leapclient/ProviderAPI.java b/src/se/leap/leapclient/ProviderAPI.java
index 72b134e..db53d6f 100644
--- a/src/se/leap/leapclient/ProviderAPI.java
+++ b/src/se/leap/leapclient/ProviderAPI.java
@@ -485,7 +485,6 @@ public class ProviderAPI extends IntentService {
} catch (IOException e) {
// The downloaded certificate doesn't validate our https connection.
json_file_content = getStringFromProviderWithoutValidate(url);
- displayToast(R.string.certificate_error);
} catch (KeyStoreException e) {
// TODO Auto-generated catch block
e.printStackTrace();
@@ -535,6 +534,7 @@ public class ProviderAPI extends IntentService {
} catch (IOException e) {
// The downloaded certificate doesn't validate our https connection.
e.printStackTrace();
+ displayToast(R.string.certificate_error);
} catch (NoSuchAlgorithmException e) {
// TODO Auto-generated catch block
e.printStackTrace();