|
@@ -109,6 +109,7 @@ class NumberRecordsFragment : BaseFragment<FragmentNumberRecordsBinding>() {
|
|
|
if (binding.editTime.text.isNullOrEmpty()) {
|
|
|
toastIndo.toast()
|
|
|
} else {
|
|
|
+ saveData()
|
|
|
when (questionId) {
|
|
|
72 -> {
|
|
|
val controller = Navigation.findNavController(it)
|
|
@@ -216,4 +217,16 @@ class NumberRecordsFragment : BaseFragment<FragmentNumberRecordsBinding>() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 保存信息
|
|
|
+ */
|
|
|
+ private fun saveData() {
|
|
|
+ if (question != null) {
|
|
|
+ question!!.inputString = binding.editTime.text.toString().trim()
|
|
|
+ question!!.reviewAnswer = binding.editTime.text.toString().trim()
|
|
|
+ question!!.correct = ""
|
|
|
+ dao?.update(question!!)
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|