|
|
@@ -242,6 +242,9 @@ class CountFragment : BaseFragment<FragmentCountBinding>() {
|
|
|
} else {
|
|
|
if (firstquestion != null) {
|
|
|
firstquestion?.inputString = binding.editResultOne.text.toString().trim()
|
|
|
+ firstquestion!!.review_id = firstquestion!!.id
|
|
|
+ firstquestion!!.review_answer = binding.editResultOne.text.toString().trim()
|
|
|
+ firstquestion!!.correct = ""
|
|
|
dao?.update(firstquestion!!)
|
|
|
}
|
|
|
}
|
|
|
@@ -258,6 +261,9 @@ class CountFragment : BaseFragment<FragmentCountBinding>() {
|
|
|
} else {
|
|
|
if (secondQuestion != null) {
|
|
|
secondQuestion?.inputString = binding.editResultTwo.text.toString().trim()
|
|
|
+ secondQuestion!!.review_id = secondQuestion!!.id
|
|
|
+ secondQuestion!!.review_answer = binding.editResultTwo.text.toString().trim()
|
|
|
+ secondQuestion!!.correct = ""
|
|
|
dao?.update(secondQuestion!!)
|
|
|
}
|
|
|
}
|
|
|
@@ -276,6 +282,9 @@ class CountFragment : BaseFragment<FragmentCountBinding>() {
|
|
|
} else {
|
|
|
if (thirdQuestion != null) {
|
|
|
thirdQuestion?.inputString = binding.editResultThree.text.toString().trim()
|
|
|
+ thirdQuestion!!.review_id = thirdQuestion!!.id
|
|
|
+ thirdQuestion!!.review_answer = binding.editResultThree.text.toString().trim()
|
|
|
+ thirdQuestion!!.correct = ""
|
|
|
dao?.update(thirdQuestion!!)
|
|
|
}
|
|
|
}
|
|
|
@@ -294,6 +303,9 @@ class CountFragment : BaseFragment<FragmentCountBinding>() {
|
|
|
} else {
|
|
|
if (fourthQuestion != null) {
|
|
|
fourthQuestion?.inputString = binding.editResultFour.text.toString().trim()
|
|
|
+ fourthQuestion!!.review_id = fourthQuestion!!.id
|
|
|
+ fourthQuestion!!.review_answer = binding.editResultFour.text.toString().trim()
|
|
|
+ fourthQuestion!!.correct = ""
|
|
|
dao?.update(fourthQuestion!!)
|
|
|
}
|
|
|
}
|
|
|
@@ -312,6 +324,9 @@ class CountFragment : BaseFragment<FragmentCountBinding>() {
|
|
|
} else {
|
|
|
if (fifthQuestion != null) {
|
|
|
fifthQuestion?.inputString = binding.editResultFive.text.toString().trim()
|
|
|
+ fifthQuestion!!.review_id = fifthQuestion!!.id
|
|
|
+ fifthQuestion!!.review_answer = binding.editResultFive.text.toString().trim()
|
|
|
+ fifthQuestion!!.correct = ""
|
|
|
dao?.update(fifthQuestion!!)
|
|
|
}
|
|
|
}
|