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
1 changed files with 4 additions and 0 deletions

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]