From 6af3ab8a56bcb18ed6ebb15218aa647632e2a7f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Sat, 29 Mar 2014 03:12:22 +0100 Subject: Setting up provider finishes with use_anon/log_in I was telling the app that the user stopped setting a provider before s/he actually tapped the login/use anonymously button from Provider Details. --- src/se/leap/bitmaskclient/ConfigurationWizard.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/se/leap/bitmaskclient/ConfigurationWizard.java b/src/se/leap/bitmaskclient/ConfigurationWizard.java index 1c839389..e992c836 100644 --- a/src/se/leap/bitmaskclient/ConfigurationWizard.java +++ b/src/se/leap/bitmaskclient/ConfigurationWizard.java @@ -159,8 +159,7 @@ implements ProviderListFragment.Callbacks, NewProviderDialogInterface, ProviderD mProgressBar.incrementProgressBy(1); mProgressBar.setVisibility(ProgressBar.GONE); progressbar_description.setVisibility(TextView.GONE); - setResult(RESULT_OK); - setting_up_provider = false; + setResult(RESULT_OK); showProviderDetails(getCurrentFocus()); } } else if(resultCode == ProviderAPI.PROVIDER_NOK) { @@ -529,12 +528,14 @@ implements ProviderListFragment.Callbacks, NewProviderDialogInterface, ProviderD Intent ask_login = new Intent(); ask_login.putExtra(LogInDialog.VERB, LogInDialog.VERB); setResult(RESULT_OK, ask_login); + setting_up_provider = false; finish(); } @Override public void use_anonymously() { setResult(RESULT_OK); + setting_up_provider = false; finish(); } -- cgit v1.2.3