作者 zhangji

每日一练、挑战答题、模拟考试增加弹窗关闭

... ... @@ -76,6 +76,7 @@ class ChallengeActivity :
// 标题弹窗
titleDialog.setListener(object : DialogListener {
override fun determine() {
titleDialog.dismiss()
finish()
}
})
... ... @@ -120,7 +121,6 @@ class ChallengeActivity :
mViewModel.challengeInfoLiveData.observe(this) {
if (!titleDialog.isShowing) {
// 点击外部不取消
titleDialog.setInfo("共${it.data.total_count}道题")
titleDialog.setTitleSpan("答对${it.data.correct_count}道题").show()
... ...
... ... @@ -134,6 +134,7 @@ class ExamDetailActivity :
// 标题弹窗
titleDialog.setListener(object : DialogListener {
override fun determine() {
titleDialog.dismiss()
finish()
}
})
... ...
... ... @@ -129,6 +129,7 @@ class PracticeActivity :
// 标题弹窗
titleDialog.setListener(object : DialogListener {
override fun determine() {
titleDialog.dismiss()
finish()
}
})
... ...