diff --git a/android/app/src/main/java/app/priceguard/ui/login/LoginActivity.kt b/android/app/src/main/java/app/priceguard/ui/login/LoginActivity.kt index 90e35c3..b54700b 100644 --- a/android/app/src/main/java/app/priceguard/ui/login/LoginActivity.kt +++ b/android/app/src/main/java/app/priceguard/ui/login/LoginActivity.kt @@ -56,12 +56,16 @@ class LoginActivity : AppCompatActivity() { loginViewModel.event.collect { eventType -> when (eventType) { LoginViewModel.LoginEvent.Invalid -> showDialog( + getString(R.string.login_invalid), + getString(R.string.login_invalid_message), + getString(R.string.login_fail_accept) + ) + + LoginViewModel.LoginEvent.LoginFailed -> showDialog( getString(R.string.login_fail), getString(R.string.login_fail_message), getString(R.string.login_fail_accept) ) - - LoginViewModel.LoginEvent.LoginFailed -> TODO("로그인 실패 시 처리") LoginViewModel.LoginEvent.LoginSuccess -> TODO("로그인 성공 시 처리") } } diff --git a/android/app/src/main/res/values/strings.xml b/android/app/src/main/res/values/strings.xml index 4eedbbb..0811ac6 100644 --- a/android/app/src/main/res/values/strings.xml +++ b/android/app/src/main/res/values/strings.xml @@ -11,4 +11,6 @@ 로그인 실패 다시 시도해 주세요. 확인 + 유효하지 않은 입력입니다. + 이메일과 비밀번호를 다시 확인해주세요. \ No newline at end of file