|
@@ -103,7 +103,7 @@ class MultipleChoiceFragment : BaseFragment<FragmentMultipleChoiceBinding>() {
|
|
if (secondQuestion != null) {
|
|
if (secondQuestion != null) {
|
|
choiceItemList.add(secondQuestion)
|
|
choiceItemList.add(secondQuestion)
|
|
}
|
|
}
|
|
- val thirdQuestionId = questionId + 1
|
|
|
|
|
|
+ val thirdQuestionId = questionId + 2
|
|
val thirdQuestion = dao?.getQuestion(thirdQuestionId)
|
|
val thirdQuestion = dao?.getQuestion(thirdQuestionId)
|
|
if (thirdQuestion != null) {
|
|
if (thirdQuestion != null) {
|
|
choiceItemList.add(thirdQuestion)
|
|
choiceItemList.add(thirdQuestion)
|
|
@@ -119,19 +119,19 @@ class MultipleChoiceFragment : BaseFragment<FragmentMultipleChoiceBinding>() {
|
|
if (dao != null) {
|
|
if (dao != null) {
|
|
val firstquestion = dao?.getQuestion(questionId)
|
|
val firstquestion = dao?.getQuestion(questionId)
|
|
if (firstquestion != null && firstquestion.inputString.isNullOrEmpty()) {
|
|
if (firstquestion != null && firstquestion.inputString.isNullOrEmpty()) {
|
|
- "请判断是否正确".toast()
|
|
|
|
|
|
+ "请判断第一道题目答案是否正确".toast()
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
val secondQuestionnId = questionId + 1
|
|
val secondQuestionnId = questionId + 1
|
|
val secondQuestion = dao?.getQuestion(secondQuestionnId)
|
|
val secondQuestion = dao?.getQuestion(secondQuestionnId)
|
|
if (secondQuestion != null && secondQuestion.inputString.isNullOrEmpty()) {
|
|
if (secondQuestion != null && secondQuestion.inputString.isNullOrEmpty()) {
|
|
- "请判断是否正确".toast()
|
|
|
|
|
|
+ "请判断第二道题目答案是否正确".toast()
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
- val thirdQuestionId = questionId + 1
|
|
|
|
|
|
+ val thirdQuestionId = questionId + 2
|
|
val thirdQuestion = dao?.getQuestion(thirdQuestionId)
|
|
val thirdQuestion = dao?.getQuestion(thirdQuestionId)
|
|
if (thirdQuestion != null && thirdQuestion.inputString.isNullOrEmpty()) {
|
|
if (thirdQuestion != null && thirdQuestion.inputString.isNullOrEmpty()) {
|
|
- "请判断是否正确".toast()
|
|
|
|
|
|
+ "请判断第三道题目答案是否正确".toast()
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
}
|
|
}
|