diff --git a/app/build.gradle b/app/build.gradle index 8b0cb0f60..cfdd6d8b2 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -90,7 +90,7 @@ dependencies { implementation 'info.androidhive:imagefilters:1.0.7' implementation 'com.caverock:androidsvg-aar:1.4' implementation 'com.github.tibbi:gestureviews:a8e8fa8d27' - implementation 'com.github.tibbi:subsampling-scale-image-view:65ff7870ed' + implementation 'com.github.tibbi:subsampling-scale-image-view:966657ff5d' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' implementation 'com.github.penfeizhou.android.animation:awebp:2.17.0' implementation 'com.github.penfeizhou.android.animation:apng:2.17.0' 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 34935ad7c..06002622f 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 @@ -228,6 +228,10 @@ class PhotoFragment : ViewPagerFragment() { loadImage() } else if (mMedium.isGIF()) { loadGif() + } else if (mIsSubsamplingVisible) { + mView.subsampling_view.onGlobalLayout { + mView.subsampling_view.resetView() + } } }