summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-12-22 11:47:08 +0100
committerParménides GV <parmegv@sdf.org>2014-12-22 11:47:08 +0100
commit3fd72775d39857b5d09e2d55db4d29cf7cb7a3dc (patch)
treed4963ae55fe86169378711b7cb63b233e9d0efbc /app
parent410bafed7c5d31128a4957a7697d0e34989f4390 (diff)
parentdeb2cfdeb174822e5550924ac1000f30d948c1cd (diff)
Merge branch 'bug/Fragment-already-active-in-signUpDialog-#6583' into develop
Diffstat (limited to 'app')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/SessionDialog.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/SessionDialog.java b/app/src/main/java/se/leap/bitmaskclient/SessionDialog.java
index 22e0f128..a8226d30 100644
--- a/app/src/main/java/se/leap/bitmaskclient/SessionDialog.java
+++ b/app/src/main/java/se/leap/bitmaskclient/SessionDialog.java
@@ -129,15 +129,15 @@ public class SessionDialog extends DialogFragment{
SessionDialogInterface interface_with_Dashboard;
- /**
- * @return a new instance of this DialogFragment.
- */
- public static DialogFragment newInstance() {
- if(dialog == null)
- dialog = new SessionDialog();
+ /**
+ * @return a new instance of this DialogFragment.
+ */
+ public static DialogFragment newInstance() {
+ if(dialog == null || dialog.getArguments() != null)
+ dialog = new SessionDialog();
return dialog;
- }
+ }
@Override
public void onAttach(Activity activity) {