2
0
Fork 1
mirror of https://github.com/FossifyOrg/Gallery.git synced 2025-04-21 18:59:48 +02:00

do not allow changing portrait photos by clicking in fullscreen mode

This commit is contained in:
tibbi 2019-10-04 12:13:54 +02:00
parent 4848616d88
commit f821fc0727

View file

@ -466,6 +466,10 @@ class PhotoFragment : ViewPagerFragment() {
val sideElementWidth = curWidth - screenWidth
val adapter = PortraitPhotosAdapter(context!!, paths, sideElementWidth) { position, x ->
if (mIsFullscreen) {
return@PortraitPhotosAdapter
}
mView.photo_portrait_stripe.smoothScrollBy((x + itemWidth / 2) - screenWidth / 2, 0)
if (paths[position] != mCurrentPortraitPhotoPath) {
mCurrentPortraitPhotoPath = paths[position]