|
@@ -508,7 +508,9 @@ class CountFragment : BaseFragment<FragmentCountBinding>(), View.OnTouchListener
|
|
|
if (v.id == R.id.btnPrevious) {
|
|
|
pageUp(v)
|
|
|
} else if (v.id == R.id.btnNext) {
|
|
|
- pageNext(v)
|
|
|
+ if (judge()) {
|
|
|
+ pageNext(v)
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
MotionEvent.ACTION_CANCEL -> {
|
|
@@ -538,13 +540,11 @@ class CountFragment : BaseFragment<FragmentCountBinding>(), View.OnTouchListener
|
|
|
* 下一页
|
|
|
*/
|
|
|
private fun pageNext(v: View) {
|
|
|
- if (judge()) {
|
|
|
- val bundle = bundleOf("questionId" to 22)
|
|
|
- val controller = Navigation.findNavController(v)
|
|
|
- controller.navigate(
|
|
|
- R.id.action_countFragment_to_recognitionImageFragment,
|
|
|
- bundle
|
|
|
- )
|
|
|
- }
|
|
|
+ val bundle = bundleOf("questionId" to 22)
|
|
|
+ val controller = Navigation.findNavController(v)
|
|
|
+ controller.navigate(
|
|
|
+ R.id.action_countFragment_to_recognitionImageFragment,
|
|
|
+ bundle
|
|
|
+ )
|
|
|
}
|
|
|
}
|