diff options
author | Parménides GV <parmegv@sdf.org> | 2014-01-16 20:55:37 +0100 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2014-03-29 01:48:39 +0100 |
commit | ad0bc03af6b2010281e2cf31ae041c459dedc6a5 (patch) | |
tree | 2d388c9a9ba0e460a1346c66b20f867568a6baba /src/se/leap/bitmaskclient/Dashboard.java | |
parent | 40c58015378ca9f9b7e8ad060eacf51eaaf00057 (diff) |
Back button while setting up a provider works
It stops the process, you can restart it as usual, but if you press back
again you quit the app because there is no chosen provider.
Diffstat (limited to 'src/se/leap/bitmaskclient/Dashboard.java')
-rw-r--r-- | src/se/leap/bitmaskclient/Dashboard.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/se/leap/bitmaskclient/Dashboard.java b/src/se/leap/bitmaskclient/Dashboard.java index 65fd2d5b..aa3cd4d9 100644 --- a/src/se/leap/bitmaskclient/Dashboard.java +++ b/src/se/leap/bitmaskclient/Dashboard.java @@ -103,7 +103,7 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf protected void onActivityResult(int requestCode, int resultCode, Intent data){ if ( requestCode == CONFIGURE_LEAP || requestCode == SWITCH_PROVIDER) { // It should be equivalent: if ( (requestCode == CONFIGURE_LEAP) || (data!= null && data.hasExtra(STOP_FIRST))) { - if ( resultCode == RESULT_OK ){ + if ( resultCode == RESULT_OK ){ getSharedPreferences(Dashboard.SHARED_PREFERENCES, MODE_PRIVATE).edit().putInt(EIP.PARSED_SERIAL, 0).commit(); getSharedPreferences(Dashboard.SHARED_PREFERENCES, MODE_PRIVATE).edit().putBoolean(EIP.AUTHED_EIP, authed_eip).commit(); Intent updateEIP = new Intent(getApplicationContext(), EIP.class); |