diff --git a/app/src/main/java/org/ntlab/amaryllis/client/LoginActivity.java b/app/src/main/java/org/ntlab/amaryllis/client/LoginActivity.java index 539c8b6..8fe1519 100644 --- a/app/src/main/java/org/ntlab/amaryllis/client/LoginActivity.java +++ b/app/src/main/java/org/ntlab/amaryllis/client/LoginActivity.java @@ -52,15 +52,15 @@ @Override public void onResponse(Call call, Response response) { if (response.isSuccessful()) { - SignUpJson signUpJson =response.body(); - Amaryllis app = (Amaryllis) getApplication(); - app.setToken(signUpJson.getToken()); - app.setUid(nameText.getText().toString()); - app.setPassword(passWordEditText.getText().toString()); - app.setName(nameText.getText().toString()); - Intent intent = new Intent(getApplication(), MainActivity.class); - startActivity(intent); - finish(); + SignUpJson signUpJson =response.body(); + Amaryllis app = (Amaryllis) getApplication(); + app.setToken(signUpJson.getToken()); + app.setUid(nameText.getText().toString()); + app.setPassword(passWordEditText.getText().toString()); + app.setName(nameText.getText().toString()); + Intent intent = new Intent(getApplication(), MainActivity.class); + startActivity(intent); + finish(); }else { Toast.makeText(LoginActivity.this, "nameもしくはパスワードが違います", Toast.LENGTH_SHORT).show();