|
@@ -393,8 +393,6 @@ class CountFragment : BaseFragment<FragmentCountBinding>(), View.OnTouchListener
|
|
|
private fun save() {
|
|
|
if (questionsDao != null) {
|
|
|
if (questionOne) {
|
|
|
- questionOne = false
|
|
|
- questionTwo = true
|
|
|
if (firstQuestion != null) {
|
|
|
firstQuestion!!.inputString = binding.editResultOne.toString().trim()
|
|
|
firstQuestion!!.reviewId = firstQuestion!!.id
|
|
@@ -404,8 +402,6 @@ class CountFragment : BaseFragment<FragmentCountBinding>(), View.OnTouchListener
|
|
|
}
|
|
|
}
|
|
|
if (questionTwo) {
|
|
|
- questionTwo = false
|
|
|
- questionThree = true
|
|
|
if (secondQuestion != null) {
|
|
|
secondQuestion!!.inputString = binding.editResultTwo.toString().trim()
|
|
|
secondQuestion!!.reviewId = secondQuestion!!.id
|
|
@@ -415,8 +411,6 @@ class CountFragment : BaseFragment<FragmentCountBinding>(), View.OnTouchListener
|
|
|
}
|
|
|
}
|
|
|
if (questionThree) {
|
|
|
- questionThree = false
|
|
|
- questionFour = true
|
|
|
if (thirdQuestion != null) {
|
|
|
thirdQuestion!!.inputString = binding.editResultThree.toString().trim()
|
|
|
thirdQuestion!!.reviewId = thirdQuestion!!.id
|
|
@@ -426,8 +420,6 @@ class CountFragment : BaseFragment<FragmentCountBinding>(), View.OnTouchListener
|
|
|
}
|
|
|
}
|
|
|
if (questionFour) {
|
|
|
- questionFour = false
|
|
|
- questionFive = true
|
|
|
if (fourthQuestion != null) {
|
|
|
fourthQuestion!!.inputString = binding.editResultFour.toString().trim()
|
|
|
fourthQuestion!!.reviewId = fourthQuestion!!.id
|