summaryrefslogtreecommitdiff
path: root/app/src/main/java/se
diff options
context:
space:
mode:
Diffstat (limited to 'app/src/main/java/se')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/LogInDialog.java13
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/SignUpDialog.java5
2 files changed, 8 insertions, 10 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/LogInDialog.java b/app/src/main/java/se/leap/bitmaskclient/LogInDialog.java
index da74958d..45d3a373 100644
--- a/app/src/main/java/se/leap/bitmaskclient/LogInDialog.java
+++ b/app/src/main/java/se/leap/bitmaskclient/LogInDialog.java
@@ -101,6 +101,13 @@ public class LogInDialog extends DialogFragment {
dialog.cancel();
interface_with_Dashboard.cancelLoginOrSignup();
}
+ })
+ .setNeutralButton(R.string.signup_button, new DialogInterface.OnClickListener() {
+ public void onClick(DialogInterface dialog, int id) {
+ String username = username_field.getText().toString();
+ String password = password_field.getText().toString();
+ interface_with_Dashboard.signUp(username, password);
+ }
});
return builder.create();
@@ -113,13 +120,9 @@ public class LogInDialog extends DialogFragment {
*
*/
public interface LogInDialogInterface {
- /**
- * Starts authentication process.
- * @param username
- * @param password
- */
public void authenticate(String username, String password);
public void cancelAuthedEipOn();
+ public void signUp(String username, String password);
public void cancelLoginOrSignup();
}
diff --git a/app/src/main/java/se/leap/bitmaskclient/SignUpDialog.java b/app/src/main/java/se/leap/bitmaskclient/SignUpDialog.java
index 2ba65c5d..120d4eec 100644
--- a/app/src/main/java/se/leap/bitmaskclient/SignUpDialog.java
+++ b/app/src/main/java/se/leap/bitmaskclient/SignUpDialog.java
@@ -112,11 +112,6 @@ public class SignUpDialog extends DialogFragment {
*
*/
public interface SignUpDialogInterface {
- /**
- * Starts authentication process.
- * @param username
- * @param password
- */
public void signUp(String username, String password);
public void cancelAuthedEipOn();
public void cancelLoginOrSignup();