|
@@ -6,6 +6,7 @@ import android.view.MotionEvent
|
|
|
import android.view.View
|
|
|
import androidx.core.os.bundleOf
|
|
|
import androidx.navigation.Navigation
|
|
|
+import com.hyphenate.easeui.utils.CommonUtils
|
|
|
import com.yingyang.moca.R
|
|
|
import com.yingyang.moca.databinding.FragmentSingleChoiceBinding
|
|
|
import com.yingyangfly.baselib.base.BaseFragment
|
|
@@ -61,6 +62,11 @@ class SingleChoiceFragment : BaseFragment<FragmentSingleChoiceBinding>(),
|
|
|
|
|
|
override fun onResume() {
|
|
|
super.onResume()
|
|
|
+ binding.btnNext.text = if (questionId == 76) {
|
|
|
+ "提交"
|
|
|
+ } else {
|
|
|
+ "继续"
|
|
|
+ }
|
|
|
loadData()
|
|
|
}
|
|
|
|
|
@@ -121,7 +127,9 @@ class SingleChoiceFragment : BaseFragment<FragmentSingleChoiceBinding>(),
|
|
|
if (v.id == R.id.btnPrevious) {
|
|
|
previousPage(v)
|
|
|
} else if (v.id == R.id.btnNext) {
|
|
|
- nextPage(v)
|
|
|
+ if (CommonUtils.isFastClick) {
|
|
|
+ nextPage(v)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
MotionEvent.ACTION_CANCEL -> {
|