From 7d5f3fe7ae2480bf5d30792b17326b1282488ca8 Mon Sep 17 00:00:00 2001 From: ss99x2002 Date: Sat, 15 Jul 2023 19:07:23 +0900 Subject: [PATCH] =?UTF-8?q?[Feat/#61]=20=EB=8B=B5=EB=B3=80=20=EB=AF=B8?= =?UTF-8?q?=EC=9E=85=EB=A0=A5=EC=8B=9C=20=EB=8B=B5=EB=B3=80=20dialog=20?= =?UTF-8?q?=EC=95=88=EB=9C=A8=EA=B2=8C=20=EA=B8=B0=EB=8A=A5=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sopt/umbba_android/presentation/qna/AnswerActivity.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/com/sopt/umbba_android/presentation/qna/AnswerActivity.kt b/app/src/main/java/com/sopt/umbba_android/presentation/qna/AnswerActivity.kt index 5675f9c7..c43872f4 100644 --- a/app/src/main/java/com/sopt/umbba_android/presentation/qna/AnswerActivity.kt +++ b/app/src/main/java/com/sopt/umbba_android/presentation/qna/AnswerActivity.kt @@ -23,7 +23,11 @@ class AnswerActivity : BindingActivity(R.layout.activity_ override fun onClick(view: View?) { when (view?.id) { R.id.iv_qna_back -> showBackDialog() - R.id.iv_check -> showConfirmDialog() + R.id.iv_check -> { + if (!answerViewModel.answer.value.isNullOrBlank()) { + showConfirmDialog() + } + } } } @@ -37,7 +41,7 @@ class AnswerActivity : BindingActivity(R.layout.activity_ tvQuestion.text = intent.getStringExtra("question") tvTitle.text = intent.getStringExtra("topic") layoutAppbar.titleText = intent.getStringExtra("section").toString() - Log.e("hyeon",intent.getStringExtra("section").toString()) + Log.e("hyeon", intent.getStringExtra("section").toString()) } }