mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-12-02 09:18:00 +01:00
adding a few more checks at activity state at loading fullscreen images
This commit is contained in:
parent
9d2026e639
commit
bee4b0ff72
1 changed files with 1 additions and 1 deletions
|
@ -373,7 +373,7 @@ class PhotoFragment : ViewPagerFragment() {
|
||||||
.apply(options)
|
.apply(options)
|
||||||
.listener(object : RequestListener<Drawable> {
|
.listener(object : RequestListener<Drawable> {
|
||||||
override fun onLoadFailed(e: GlideException?, model: Any?, target: Target<Drawable>?, isFirstResource: Boolean): Boolean {
|
override fun onLoadFailed(e: GlideException?, model: Any?, target: Target<Drawable>?, isFirstResource: Boolean): Boolean {
|
||||||
if (activity != null) {
|
if (activity != null && !activity!!.isDestroyed && !activity!!.isFinishing) {
|
||||||
tryLoadingWithPicasso(addZoomableView)
|
tryLoadingWithPicasso(addZoomableView)
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
|
|
Loading…
Reference in a new issue