mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-26 22:47:59 +01:00
updating Subsampling scale image view + null check
This commit is contained in:
parent
9443fec381
commit
c20f6fed0f
2 changed files with 5 additions and 1 deletions
|
@ -92,7 +92,7 @@ dependencies {
|
||||||
implementation 'com.squareup.picasso:picasso:2.71828'
|
implementation 'com.squareup.picasso:picasso:2.71828'
|
||||||
implementation 'com.caverock:androidsvg-aar:1.3'
|
implementation 'com.caverock:androidsvg-aar:1.3'
|
||||||
implementation 'com.github.tibbi:gestureviews:512f929d82'
|
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'
|
kapt 'com.github.bumptech.glide:compiler:4.10.0'
|
||||||
|
|
||||||
|
|
|
@ -399,6 +399,10 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
options.diskCacheStrategy(DiskCacheStrategy.NONE)
|
options.diskCacheStrategy(DiskCacheStrategy.NONE)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (context == null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
Glide.with(context!!)
|
Glide.with(context!!)
|
||||||
.load(getFilePathToShow())
|
.load(getFilePathToShow())
|
||||||
.apply(options)
|
.apply(options)
|
||||||
|
|
Loading…
Reference in a new issue