王鹏鹏 1 рік тому
батько
коміт
92c934f112

+ 5 - 5
moca/src/main/java/com/yingyangfly/moca/singlechoice/SingleChoiceFragment.kt

@@ -62,11 +62,6 @@ class SingleChoiceFragment : BaseFragment<FragmentSingleChoiceBinding>(),
 
     override fun onResume() {
         super.onResume()
-        binding.btnNext.text = if (questionId == 76) {
-            "提交"
-        } else {
-            "继续"
-        }
         loadData()
     }
 
@@ -74,6 +69,11 @@ class SingleChoiceFragment : BaseFragment<FragmentSingleChoiceBinding>(),
      * 加载数据
      */
     private fun loadData() {
+        binding.btnNext.text = if (questionId == 76) {
+            "提交"
+        } else {
+            "继续"
+        }
         choiceItemList.clear()
         if (questionsDao != null) {
             question = questionsDao?.getQuestion(questionId)