diff --git a/app/src/main/java/com/example/citrusclient/views/SignUpActivity.java b/app/src/main/java/com/example/citrusclient/views/SignUpActivity.java index 47eb235..4b492b3 100644 --- a/app/src/main/java/com/example/citrusclient/views/SignUpActivity.java +++ b/app/src/main/java/com/example/citrusclient/views/SignUpActivity.java @@ -79,17 +79,19 @@ System.out.println("テスト入力完了"); //入力した文字に空白が含まれている場合 - if(id.contains(" ") || pw.contains(" ")){ + //半角->全角 全てのスペースをなくす + if(id.contains(" ") ||id.contains(" ") || pw.contains(" ") || pw.contains(" ")){ System.out.println("不適切入力"); ((TextView)findViewById(R.id.textView_respons)).setText("空白を含まないように入力してください"); } //入力欄が空欄の時 + //半角->全角 if(id.isEmpty() || pw.isEmpty() || id.trim().isEmpty() || pw.trim().isEmpty() ){ System.out.println("不適切入力"); ((TextView)findViewById(R.id.textView_respons)).setText("適切に入力してください"); - }else if(!id.isEmpty() && !pw.isEmpty() && !id.trim().isEmpty() && !pw.trim().isEmpty() && !id.contains(" ") && !pw.contains(" ") ){ + }else if(!id.isEmpty() && !pw.isEmpty() && !id.trim().isEmpty() && !pw.trim().isEmpty() && !id.contains(" ") && !id.contains(" ") && !pw.contains(" ") && !pw.contains(" ")){ //入力欄が全て適切に入力された場合の処理 Call call = accountsRest.signup(id,pw); call.enqueue(new Callback() {