diff --git a/app/build.gradle b/app/build.gradle index fffbfdc14..e0f922568 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -92,7 +92,7 @@ dependencies { implementation 'com.squareup.picasso:picasso:2.71828' implementation 'com.caverock:androidsvg-aar:1.3' implementation 'com.github.tibbi:gestureviews:512f929d82' - implementation 'com.github.tibbi:subsampling-scale-image-view:d404e74e39' + implementation 'com.github.tibbi:subsampling-scale-image-view:381878c078' kapt 'com.github.bumptech.glide:compiler:4.10.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 f9ab0239e..3495e80a9 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 @@ -399,6 +399,10 @@ class PhotoFragment : ViewPagerFragment() { options.diskCacheStrategy(DiskCacheStrategy.NONE) } + if (context == null) { + return + } + Glide.with(context!!) .load(getFilePathToShow()) .apply(options)