diff --git a/app/src/main/java/com/example/citrusclient/viewmodels/SettingsViewModel.java b/app/src/main/java/com/example/citrusclient/viewmodels/SettingsViewModel.java index 1fee00a..b7a350e 100644 --- a/app/src/main/java/com/example/citrusclient/viewmodels/SettingsViewModel.java +++ b/app/src/main/java/com/example/citrusclient/viewmodels/SettingsViewModel.java @@ -76,16 +76,7 @@ //成功処理 } else { System.out.println("fail"); - switch (response.code()){ - case 404: - //パスワードが違う - error_changePw_LiveData.setValue(404); - break; - case 403: - //認証失敗 - error_changePw_LiveData.setValue(403); - break; - } + error_changePw_LiveData.setValue(404); } } @@ -159,17 +150,7 @@ error_changeAccount_LiveData.setValue(200); }else{ System.out.println("fail"); - switch (response.code()){ - case 404: - //ID・PWが違う - error_changeAccount_LiveData.setValue(404); - break; - case 403: - //承認失敗 - error_changeAccount_LiveData.setValue(403); - break; - } - + error_changeAccount_LiveData.setValue(404); } }