From 1150f1947d4cf20c58bab01f0b2771d1dd7446d0 Mon Sep 17 00:00:00 2001 From: HaeTi Date: Thu, 7 Dec 2023 12:54:00 +0900 Subject: [PATCH] =?UTF-8?q?#128=20/=20Home=20=EC=A1=B0=ED=9A=8C=EC=97=90?= =?UTF-8?q?=EC=84=9C=20UE1006=20=EB=B0=9C=EC=83=9D=20=EC=8B=9C=20=EC=95=A1?= =?UTF-8?q?=EC=85=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/sopt/uni/presentation/home/HomeActivity.kt | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/sopt/uni/presentation/home/HomeActivity.kt b/app/src/main/java/sopt/uni/presentation/home/HomeActivity.kt index e2a2bcc..f7214bc 100644 --- a/app/src/main/java/sopt/uni/presentation/home/HomeActivity.kt +++ b/app/src/main/java/sopt/uni/presentation/home/HomeActivity.kt @@ -12,6 +12,7 @@ import sopt.uni.databinding.ActivityHomeBinding import sopt.uni.presentation.common.content.ErrorCodeState import sopt.uni.presentation.common.content.UNDECIDED import sopt.uni.presentation.history.HistoryActivity +import sopt.uni.presentation.invite.NickNameActivity import sopt.uni.presentation.login.LoginActivity import sopt.uni.presentation.mypage.MypageSettingActivity import sopt.uni.presentation.shortgame.createshortgame.CreateShortGameActivity @@ -132,11 +133,17 @@ class HomeActivity : BindingActivity(R.layout.activity_home homeViewModel.errorState.collect { when (it) { is ErrorCodeState.NoToken -> { - showToast("존재하지 않는 사용자입니다. 다시 로그인해주세요") + showToast(getString(R.string.ue1008_error_message)) startActivity() Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK } + is ErrorCodeState.NoPartner -> { + showToast(getString(R.string.ue1006_error_message)) + startActivity() + Intent.FLAG_ACTIVITY_CLEAR_TASK or Intent.FLAG_ACTIVITY_NEW_TASK + } + else -> { Timber.e("error: $it") }