Skip to content

Commit

Permalink
Disable view pager scroll animation
Browse files Browse the repository at this point in the history
  • Loading branch information
naveensingh committed Sep 15, 2024
1 parent 1e5b935 commit 45f8e23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@ class AppLockActivity : AppCompatActivity(), HashListener {

binding.viewPager.apply {
this.adapter = adapter
currentItem = baseConfig.appProtectionType
isUserInputEnabled = false
setCurrentItem(baseConfig.appProtectionType, false)
onGlobalLayout {
for (i in 0..2) {
adapter.isTabVisible(i, binding.viewPager.currentItem == i)
Expand Down

0 comments on commit 45f8e23

Please sign in to comment.