summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorParménides GV <parmegv@sdf.org>2014-12-22 11:45:56 +0100
committerParménides GV <parmegv@sdf.org>2014-12-22 11:45:56 +0100
commitdeb2cfdeb174822e5550924ac1000f30d948c1cd (patch)
treed4963ae55fe86169378711b7cb63b233e9d0efbc /app/src/main
parent410bafed7c5d31128a4957a7697d0e34989f4390 (diff)
New SessionDialog if any argument previously
Diffstat (limited to 'app/src/main')
-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) {