diff --git a/app/build.gradle b/app/build.gradle index a2c4cab1e..0fd7e1e1c 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -71,7 +71,7 @@ dependencies { implementation 'com.squareup.picasso:picasso:2.71828' implementation 'com.caverock:androidsvg-aar:1.3' implementation 'com.github.tibbi:gestureviews:57844bb1d5' - implementation 'com.github.tibbi:subsampling-scale-image-view:bf097548ba' + implementation 'com.github.tibbi:subsampling-scale-image-view:e1fba2b780' 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 862f2c483..6bd8dc105 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 @@ -23,7 +23,6 @@ import com.bumptech.glide.load.engine.GlideException import com.bumptech.glide.request.RequestListener import com.bumptech.glide.request.RequestOptions import com.bumptech.glide.request.target.Target -import com.davemorrissey.labs.subscaleview.ImageSource import com.davemorrissey.labs.subscaleview.SubsamplingScaleImageView import com.davemorrissey.labs.subscaleview.decoder.DecoderFactory import com.davemorrissey.labs.subscaleview.decoder.ImageDecoder @@ -448,8 +447,8 @@ class PhotoFragment : ViewPagerFragment() { beVisible() isQuickScaleEnabled = config.oneFingerZoom isOneToOneZoomEnabled = config.allowOneToOneZoom - setOrientation(rotation) - setImage(ImageSource.uri(path)) + orientation = rotation + setImage(path) onImageEventListener = object : SubsamplingScaleImageView.OnImageEventListener { override fun onImageLoaded() { }