diff options
author | Parménides GV <parmegv@sdf.org> | 2013-10-14 15:52:38 +0200 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2013-11-19 17:54:29 +0100 |
commit | 39c95e3452f35467d0dbe89d21b0c96fa3d8ccdb (patch) | |
tree | d0a47dfd4d7f1ab3d89dbd360326163e9da04da7 /src/se/leap/bitmaskclient/Dashboard.java | |
parent | aa2b794baeffe7afc8c3c5bbac8b76e8829af84f (diff) |
Provider setup: One method downloads everything.
This method uses another 3 to download each file.
Next step: broadcast progress and remove unnecessary methods.
Diffstat (limited to 'src/se/leap/bitmaskclient/Dashboard.java')
-rw-r--r-- | src/se/leap/bitmaskclient/Dashboard.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/se/leap/bitmaskclient/Dashboard.java b/src/se/leap/bitmaskclient/Dashboard.java index 103310bb..fa91f9d2 100644 --- a/src/se/leap/bitmaskclient/Dashboard.java +++ b/src/se/leap/bitmaskclient/Dashboard.java @@ -116,8 +116,8 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf @Override protected void onActivityResult(int requestCode, int resultCode, Intent data){ if ( requestCode == CONFIGURE_LEAP ) { - if ( resultCode == RESULT_OK ){ - ConfigHelper.saveSharedPref(EIP.AUTHED_EIP, authed_eip); + if ( resultCode == RESULT_OK){ + ConfigHelper.saveSharedPref(EIP.AUTHED, authed_eip); startService( new Intent(EIP.ACTION_UPDATE_EIP_SERVICE) ); buildDashboard(); if(data != null && data.hasExtra(LogInDialog.VERB)) { @@ -228,6 +228,7 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf startActivity(intent); return true; case R.id.switch_provider: + ConfigHelper.removeFromSharedPref(Provider.KEY); startActivityForResult(new Intent(this,ConfigurationWizard.class), SWITCH_PROVIDER); return true; case R.id.login_button: |