mirror of
https://github.com/pachli/pachli-android.git
synced 2025-01-29 08:39:57 +01:00
fix another crash in ViewImageFragment
This commit is contained in:
parent
a0c399e2cf
commit
c3e5305fa2
@ -105,8 +105,10 @@ class ViewImageFragment : ViewMediaFragment() {
|
|||||||
override fun onError() {
|
override fun onError() {
|
||||||
// if there's no image in cache, load from network and start transition
|
// if there's no image in cache, load from network and start transition
|
||||||
// immediately.
|
// immediately.
|
||||||
photoActionsListener.onBringUp()
|
if (isAdded) {
|
||||||
loadImageFromNetwork(url, photoView)
|
photoActionsListener.onBringUp()
|
||||||
|
loadImageFromNetwork(url, photoView)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user