fix another crash in ViewImageFragment
This commit is contained in:
parent
a0c399e2cf
commit
c3e5305fa2
1 changed files with 4 additions and 2 deletions
|
@ -105,9 +105,11 @@ class ViewImageFragment : ViewMediaFragment() {
|
|||
override fun onError() {
|
||||
// if there's no image in cache, load from network and start transition
|
||||
// immediately.
|
||||
if (isAdded) {
|
||||
photoActionsListener.onBringUp()
|
||||
loadImageFromNetwork(url, photoView)
|
||||
}
|
||||
}
|
||||
})
|
||||
} else {
|
||||
// if we're not initial page, don't bother.
|
||||
|
|
Loading…
Reference in a new issue