mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
fix #1020, slideshow looping
This commit is contained in:
parent
d821547b3d
commit
27166b98e2
1 changed files with 2 additions and 2 deletions
|
@ -452,9 +452,9 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
||||||
private fun slideshowEnded(forward: Boolean) {
|
private fun slideshowEnded(forward: Boolean) {
|
||||||
if (config.loopSlideshow) {
|
if (config.loopSlideshow) {
|
||||||
if (forward) {
|
if (forward) {
|
||||||
view_pager.setCurrentItem(view_pager.adapter!!.count - 1, false)
|
|
||||||
} else {
|
|
||||||
view_pager.setCurrentItem(0, false)
|
view_pager.setCurrentItem(0, false)
|
||||||
|
} else {
|
||||||
|
view_pager.setCurrentItem(view_pager.adapter!!.count - 1, false)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
stopSlideshow()
|
stopSlideshow()
|
||||||
|
|
Loading…
Reference in a new issue