diff options
author | Parménides GV <parmegv@sdf.org> | 2013-11-11 18:57:02 +0100 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2013-12-10 18:18:16 +0100 |
commit | 6f8a6b145f2e699258963a8a1b8f555fc96f4ead (patch) | |
tree | 42f6aa99de5b36c49c94fb830a26fd5d5340384a /src/se/leap/bitmaskclient/ProviderAPI.java | |
parent | 9ff9dc75f267bd6e339c026c4f3e73478210b0b6 (diff) |
Retry button prompts new provider dialog.
The user can change the new provider's data entered before failing.
Diffstat (limited to 'src/se/leap/bitmaskclient/ProviderAPI.java')
-rw-r--r-- | src/se/leap/bitmaskclient/ProviderAPI.java | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/se/leap/bitmaskclient/ProviderAPI.java b/src/se/leap/bitmaskclient/ProviderAPI.java index e8f37c8a..39dd978a 100644 --- a/src/se/leap/bitmaskclient/ProviderAPI.java +++ b/src/se/leap/bitmaskclient/ProviderAPI.java @@ -122,8 +122,8 @@ public class ProviderAPI extends IntentService { EIP_SERVICE_JSON_DOWNLOADED = false ; - static private String last_provider_main_url; - static private boolean last_danger_on = false; + private static String last_provider_main_url; + private static boolean last_danger_on = false; public ProviderAPI() { super("ProviderAPI"); @@ -137,6 +137,14 @@ public class ProviderAPI extends IntentService { CookieHandler.setDefault(new CookieManager(null, CookiePolicy.ACCEPT_ORIGINAL_SERVER) ); } + public static String lastProviderMainUrl() { + return last_provider_main_url; + } + + public static boolean lastDangerOn() { + return last_danger_on; + } + private String formatErrorMessage(final int toast_string_id) { return "{ \"" + ERRORS + "\" : \""+getResources().getString(toast_string_id)+"\" }"; } |