From 5df197df4b82251467465815f503a2b38a36166b Mon Sep 17 00:00:00 2001 From: cyBerta Date: Tue, 31 Oct 2017 16:39:07 +0100 Subject: remove legacy code from SessionDialog --- .../main/java/se/leap/bitmaskclient/userstatus/SessionDialog.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'app/src/main') diff --git a/app/src/main/java/se/leap/bitmaskclient/userstatus/SessionDialog.java b/app/src/main/java/se/leap/bitmaskclient/userstatus/SessionDialog.java index 88dec39b..d124c395 100644 --- a/app/src/main/java/se/leap/bitmaskclient/userstatus/SessionDialog.java +++ b/app/src/main/java/se/leap/bitmaskclient/userstatus/SessionDialog.java @@ -50,8 +50,7 @@ public class SessionDialog extends DialogFragment { public static enum ERRORS { USERNAME_MISSING, PASSWORD_INVALID_LENGTH, - RISEUP_WARNING, - INITIALIZATION_ERROR + RISEUP_WARNING } @InjectView(R.id.user_message) @@ -123,9 +122,6 @@ public class SessionDialog extends DialogFragment { else if (arguments.containsKey(ERRORS.RISEUP_WARNING.toString())) { user_message.setVisibility(VISIBLE); user_message.setText(R.string.login_riseup_warning); - } else if (arguments.containsKey(ERRORS.INITIALIZATION_ERROR.toString())) { - user_message.setVisibility(VISIBLE); - user_message.setText(String.valueOf(arguments.get(ERRORS.INITIALIZATION_ERROR.toString()))); } if (arguments.containsKey(USERNAME)) { String username = arguments.getString(USERNAME); -- cgit v1.2.3