mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
make viewPager nullable during fake drag
This commit is contained in:
parent
0ef9ff06bf
commit
b7cb6a5364
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
val dragPosition = animation.animatedValue as Int
|
val dragPosition = animation.animatedValue as Int
|
||||||
val dragOffset = dragPosition - oldDragPosition
|
val dragOffset = dragPosition - oldDragPosition
|
||||||
oldDragPosition = dragPosition
|
oldDragPosition = dragPosition
|
||||||
view_pager.fakeDragBy(dragOffset * (if (forward) 1f else -1f))
|
view_pager?.fakeDragBy(dragOffset * (if (forward) 1f else -1f))
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue