summaryrefslogtreecommitdiff
path: root/src/se
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-08-14 10:05:37 +0200
committercyBerta <richy@cyborgsociety.org>2013-11-15 23:02:37 +0100
commitbe3f2ba04e96bc21a1c9c0459218a1d964af1945 (patch)
treeb241d4b0b4e7d2cf854c1351760c7577499757af /src/se
parent84e83e849f2604a231e2e5e1c4a9af3429ef6400 (diff)
Authenticated status remembered after exit.
If the user presses the back button and returns to leap_android, the app will show login or logout button remembering if s/he was authenticated or not. This fixes bug #3467.
Diffstat (limited to 'src/se')
-rw-r--r--src/se/leap/bitmaskclient/Dashboard.java8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/se/leap/bitmaskclient/Dashboard.java b/src/se/leap/bitmaskclient/Dashboard.java
index fd8d6be6..ec1d32c9 100644
--- a/src/se/leap/bitmaskclient/Dashboard.java
+++ b/src/se/leap/bitmaskclient/Dashboard.java
@@ -317,7 +317,11 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf
String session_id_string = resultData.getString(ProviderAPI.SESSION_ID_KEY);
setResult(RESULT_OK);
authed_eip = true;
+<<<<<<< HEAD:src/se/leap/bitmaskclient/Dashboard.java
ConfigHelper.saveSharedPref(EIP.AUTHED_EIP, authed_eip);
+=======
+ ConfigHelper.saveSharedPref(EIP.AUTHED, authed_eip);
+>>>>>>> 53c2704... Authenticated status remembered after exit.:src/se/leap/leapclient/Dashboard.java
invalidateOptionsMenu();
//Cookie session_id = new BasicClientCookie(session_id_cookie_key, session_id_string);
@@ -327,7 +331,11 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf
logInDialog(getCurrentFocus(), resultData);
} else if(resultCode == ProviderAPI.LOGOUT_SUCCESSFUL) {
authed_eip = false;
+<<<<<<< HEAD:src/se/leap/bitmaskclient/Dashboard.java
ConfigHelper.saveSharedPref(EIP.AUTHED_EIP, authed_eip);
+=======
+ ConfigHelper.saveSharedPref(EIP.AUTHED, authed_eip);
+>>>>>>> 53c2704... Authenticated status remembered after exit.:src/se/leap/leapclient/Dashboard.java
invalidateOptionsMenu();
setResult(RESULT_OK);
mProgressDialog.dismiss();