mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-30 00:17:58 +01:00
adding a crashfix at loading fullscreen images
This commit is contained in:
parent
d4a929dbd2
commit
27fb0404ca
1 changed files with 4 additions and 2 deletions
|
@ -296,8 +296,10 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
}
|
||||
|
||||
override fun onError(e: Exception) {
|
||||
if (context != null) {
|
||||
tryLoadingWithGlide()
|
||||
}
|
||||
}
|
||||
})
|
||||
} catch (ignored: Exception) {
|
||||
}
|
||||
|
@ -318,7 +320,7 @@ class PhotoFragment : ViewPagerFragment() {
|
|||
.diskCacheStrategy(DiskCacheStrategy.RESOURCE)
|
||||
.override(targetWidth, targetHeight)
|
||||
|
||||
Glide.with(this)
|
||||
Glide.with(context!!)
|
||||
.asBitmap()
|
||||
.load(getPathToLoad(medium))
|
||||
.apply(options)
|
||||
|
|
Loading…
Reference in a new issue