summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2013-09-02 20:24:36 +0200
committercyBerta <richy@cyborgsociety.org>2013-11-15 23:25:17 +0100
commit180b4d31526e442dd4978ca321a304f26b32240c (patch)
treed84dcfc6de801dd6e1f4e38782772422889f0614
parenta9904f63729fc01c6f7c4fe767cf9540f7405360 (diff)
ProviderDetail login works with new progressbar.
A nullpointer occurred, due to a progressbar view assigned when the screen did not showed it.
-rw-r--r--src/se/leap/bitmaskclient/Dashboard.java6
1 files changed, 3 insertions, 3 deletions
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) {