Skip to content

Commit

Permalink
[Feat/#61] 답변 미입력시 답변 dialog 안뜨게 기능 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
ss99x2002 committed Jul 15, 2023
1 parent 15c13a5 commit 7d5f3fe
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ class AnswerActivity : BindingActivity<ActivityAnswerBinding>(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()
}
}
}
}

Expand All @@ -37,7 +41,7 @@ class AnswerActivity : BindingActivity<ActivityAnswerBinding>(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())
}
}

Expand Down

0 comments on commit 7d5f3fe

Please sign in to comment.