From f821fc072784149b17c7d76269e7f7cdf5e4f524 Mon Sep 17 00:00:00 2001 From: tibbi Date: Fri, 4 Oct 2019 12:13:54 +0200 Subject: [PATCH] do not allow changing portrait photos by clicking in fullscreen mode --- .../simplemobiletools/gallery/pro/fragments/PhotoFragment.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt index 454269e4c..c9a1e29f0 100644 --- a/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt +++ b/app/src/main/kotlin/com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt @@ -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]