From 180b4d31526e442dd4978ca321a304f26b32240c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Parm=C3=A9nides=20GV?= Date: Mon, 2 Sep 2013 20:24:36 +0200 Subject: ProviderDetail login works with new progressbar. A nullpointer occurred, due to a progressbar view assigned when the screen did not showed it. --- src/se/leap/bitmaskclient/Dashboard.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/se/leap/bitmaskclient') diff --git a/src/se/leap/bitmaskclient/Dashboard.java b/src/se/leap/bitmaskclient/Dashboard.java index 0fc6c8eb..5a2417ff 100644 --- a/src/se/leap/bitmaskclient/Dashboard.java +++ b/src/se/leap/bitmaskclient/Dashboard.java @@ -242,6 +242,9 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf @Override public void authenticate(String username, String password) { + mProgressBar = (ProgressBar) findViewById(R.id.eipProgress); + eipStatus = (TextView) findViewById(R.id.eipStatus); + providerAPI_result_receiver = new ProviderAPIResultReceiver(new Handler()); providerAPI_result_receiver.setReceiver(this); @@ -306,9 +309,6 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf * @param view from which the dialog is created. */ public void logInDialog(View view, Bundle resultData) { - mProgressBar = (ProgressBar) findViewById(R.id.eipProgress); - eipStatus = (TextView) findViewById(R.id.eipStatus); - FragmentTransaction fragment_transaction = getFragmentManager().beginTransaction(); Fragment previous_log_in_dialog = getFragmentManager().findFragmentByTag(LogInDialog.TAG); if (previous_log_in_dialog != null) { -- cgit v1.2.3