From 9320a608c589bab6b8a5d3bc354b22ca8f42bae8 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Tue, 21 Nov 2017 19:15:08 +0100 Subject: #8789 fixed javadoc and catched another IllegalStateException --- .../main/java/se/leap/bitmaskclient/BaseConfigurationWizard.java | 4 +--- app/src/main/java/se/leap/bitmaskclient/Dashboard.java | 8 ++++++-- 2 files changed, 7 insertions(+), 5 deletions(-) (limited to 'app/src/main/java') diff --git a/app/src/main/java/se/leap/bitmaskclient/BaseConfigurationWizard.java b/app/src/main/java/se/leap/bitmaskclient/BaseConfigurationWizard.java index f35d9031..4f6163bc 100644 --- a/app/src/main/java/se/leap/bitmaskclient/BaseConfigurationWizard.java +++ b/app/src/main/java/se/leap/bitmaskclient/BaseConfigurationWizard.java @@ -368,9 +368,7 @@ public abstract class BaseConfigurationWizard extends Activity } /** - * Once selected a provider, this fragment offers the user to log in, - * use it anonymously (if possible) - * or cancel his/her election pressing the back button. + * Shows an error dialog, if configuring of a provider failed. * * @param reason_to_fail */ diff --git a/app/src/main/java/se/leap/bitmaskclient/Dashboard.java b/app/src/main/java/se/leap/bitmaskclient/Dashboard.java index a47b8767..3f1663d0 100644 --- a/app/src/main/java/se/leap/bitmaskclient/Dashboard.java +++ b/app/src/main/java/se/leap/bitmaskclient/Dashboard.java @@ -349,8 +349,12 @@ public class Dashboard extends Activity implements ProviderAPIResultReceiver.Rec } public void sessionDialog(Bundle resultData) { - FragmentTransaction transaction = fragment_manager.removePreviousFragment(SessionDialog.TAG); - SessionDialog.getInstance(provider, resultData).show(transaction, SessionDialog.TAG); + try { + FragmentTransaction transaction = fragment_manager.removePreviousFragment(SessionDialog.TAG); + SessionDialog.getInstance(provider, resultData).show(transaction, SessionDialog.TAG); + } catch (IllegalStateException e) { + e.printStackTrace(); + } } private void switchProvider() { -- cgit v1.2.3