diff options
author | Parménides GV <parmegv@sdf.org> | 2013-08-15 11:30:14 +0200 |
---|---|---|
committer | cyBerta <richy@cyborgsociety.org> | 2013-11-15 23:21:40 +0100 |
commit | 5fb26d4c18cad06190e99879eaceef15a1aa58e0 (patch) | |
tree | 52f194722078201848c0db4f8118d7d55e764c5f /src/se/leap/bitmaskclient/ProviderAPI.java | |
parent | 2013db973559e0b816b8dc8e45310b4acc8ff196 (diff) |
Login and Logout progressbars advance correctly.
Next step: prettify.
Diffstat (limited to 'src/se/leap/bitmaskclient/ProviderAPI.java')
-rw-r--r-- | src/se/leap/bitmaskclient/ProviderAPI.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/se/leap/bitmaskclient/ProviderAPI.java b/src/se/leap/bitmaskclient/ProviderAPI.java index cb2db6bf..a553851b 100644 --- a/src/se/leap/bitmaskclient/ProviderAPI.java +++ b/src/se/leap/bitmaskclient/ProviderAPI.java @@ -739,12 +739,14 @@ public class ProviderAPI extends IntentService { private boolean logOut(Bundle task) { try { String delete_url = task.getString(Provider.API_URL) + "/logout"; + int progress = 0; HttpsURLConnection urlConnection = (HttpsURLConnection)new URL(delete_url).openConnection(); urlConnection.setRequestMethod("DELETE"); urlConnection.setSSLSocketFactory(getProviderSSLSocketFactory()); int responseCode = urlConnection.getResponseCode(); + broadcast_progress(progress++); Log.d("logout", Integer.toString(responseCode)); } catch (ClientProtocolException e) { // TODO Auto-generated catch block |