diff --git a/app/build.gradle b/app/build.gradle index 6fa7f87ad..3c2b15ede 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -75,7 +75,7 @@ dependencies { implementation 'com.squareup.picasso:picasso:2.71828' implementation 'com.caverock:androidsvg-aar:1.3' implementation 'com.github.tibbi:gestureviews:985ba285fb' - implementation 'com.github.tibbi:subsampling-scale-image-view:51cb8f922c' + implementation 'com.github.tibbi:subsampling-scale-image-view:672777cb4d' kapt 'com.github.bumptech.glide:compiler:4.8.0' // keep it here too, not just in Commons, else loading SVGs wont work kapt 'androidx.room:room-compiler:2.0.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 761490ebf..73cc76968 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 @@ -557,10 +557,14 @@ class PhotoFragment : ViewPagerFragment() { } fun rotateImageViewBy(degrees: Int) { - mCurrentRotationDegrees = (mCurrentRotationDegrees + degrees) % 360 - mLoadZoomableViewHandler.removeCallbacksAndMessages(null) - mIsSubsamplingVisible = false - loadBitmap(degrees) + if (mIsSubsamplingVisible) { + mView.subsampling_view.rotateBy(degrees) + } else { + mCurrentRotationDegrees = (mCurrentRotationDegrees + degrees) % 360 + mLoadZoomableViewHandler.removeCallbacksAndMessages(null) + mIsSubsamplingVisible = false + loadBitmap(degrees) + } } private fun initExtendedDetails() {