summaryrefslogtreecommitdiff
path: root/src/se/leap
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-06-29 12:54:15 +0200
committerSean Leonard <meanderingcode@aetherislands.net>2013-07-12 14:27:04 -0600
commit3e04f2ab44e5e5e33efcfe515088ec3f918ccef0 (patch)
treea4105e2b59b7d1ff9615ff4583bc53c7b258b5c2 /src/se/leap
parent1ba2d488737bdb84847bbbc7cf9038610b1f094b (diff)
Distinguish non LEAP provider and down provider.
I've set ProviderAPI to show its own toast depending on the exception that getStringFromProvider issues. If the socket timeout reaches its end, a toast different from when an IOException or a MalformedException occur.
Diffstat (limited to 'src/se/leap')
-rw-r--r--src/se/leap/leapclient/ProviderAPI.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/se/leap/leapclient/ProviderAPI.java b/src/se/leap/leapclient/ProviderAPI.java
index 5238224e..fba0ab01 100644
--- a/src/se/leap/leapclient/ProviderAPI.java
+++ b/src/se/leap/leapclient/ProviderAPI.java
@@ -396,6 +396,7 @@ public class ProviderAPI extends IntentService {
} else {
displayToast(R.string.certificate_error);
}
+ displayToast(R.string.malformed_url);
} catch (Exception e) {
if(provider_url != null && danger_on) {
json_file_content = getStringFromProviderWithoutValidate(provider_url);