From 22c8bcf9dfcfe6a93147f19ab8359bfecba558e0 Mon Sep 17 00:00:00 2001 From: tibbi Date: Thu, 21 Feb 2019 22:15:08 +0100 Subject: [PATCH] disable zooming of fullscreen images too early --- .../com/simplemobiletools/gallery/pro/fragments/PhotoFragment.kt | 1 + 1 file changed, 1 insertion(+) 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 9ec6c71a6..cc64782cd 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 @@ -380,6 +380,7 @@ class PhotoFragment : ViewPagerFragment() { } override fun onResourceReady(resource: Drawable?, model: Any?, target: Target?, dataSource: DataSource?, isFirstResource: Boolean): Boolean { + mView.gestures_view.controller.settings.isZoomEnabled = mCurrentRotationDegrees != 0 || context?.config?.allowZoomingImages == false if (mIsFragmentVisible && addZoomableView) { scheduleZoomableView() }