diff options
author | Parménides GV <parmegv@sdf.org> | 2013-06-29 13:31:40 +0200 |
---|---|---|
committer | Sean Leonard <meanderingcode@aetherislands.net> | 2013-07-12 11:45:46 -0600 |
commit | c95194cffd8ca59298f1eed78b73c8d5a7f4c537 (patch) | |
tree | 1ee45e766d92c597fe9bcca1cc7ff7c9b7c6fadd /src/se | |
parent | 7aabefb6df93fd96a354efbbf42a2138e171b763 (diff) |
Untrusted message is not shown if danger_on = true
I forgot to add an else in the IOException from getStringFromProvider.
This was causing that even if the user checked the trusted completely
beckbox and everything was fine, the "not trusted provider" message was
being shown.
Diffstat (limited to 'src/se')
-rw-r--r-- | src/se/leap/leapclient/ProviderAPI.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/se/leap/leapclient/ProviderAPI.java b/src/se/leap/leapclient/ProviderAPI.java index 1bc11495..d0001b48 100644 --- a/src/se/leap/leapclient/ProviderAPI.java +++ b/src/se/leap/leapclient/ProviderAPI.java @@ -370,8 +370,9 @@ public class ProviderAPI extends IntentService { } catch (IOException e) { if(provider_url != null && danger_on) { json_file_content = getStringFromProviderWithoutValidate(provider_url); + } else { + displayToast(R.string.certificate_error); } - displayToast(R.string.certificate_error); } catch (Exception e) { if(provider_url != null && danger_on) { json_file_content = getStringFromProviderWithoutValidate(provider_url); |