Skip to content

Commit

Permalink
[Data collection flow] Disable animation on previous/next (#2905)
Browse files Browse the repository at this point in the history
  • Loading branch information
anandwana001 authored Dec 19, 2024
1 parent f1a2ca8 commit f819674
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ class DataCollectionFragment : AbstractFragment(), BackPressListener {
}

private fun onTaskChanged(taskPosition: TaskPosition) {
viewPager.currentItem = taskPosition.absoluteIndex
// Pass false to parameter smoothScroll to avoid smooth scrolling animation.
viewPager.setCurrentItem(taskPosition.absoluteIndex, false)
updateProgressBar(taskPosition, true)
}

Expand Down

0 comments on commit f819674

Please sign in to comment.