mirror of
https://github.com/tuskyapp/Tusky
synced 2025-02-01 14:46:44 +01:00
fix another crash in ViewImageFragment
This commit is contained in:
parent
a0c399e2cf
commit
c3e5305fa2
@ -105,9 +105,11 @@ 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.
|
||||||
|
if (isAdded) {
|
||||||
photoActionsListener.onBringUp()
|
photoActionsListener.onBringUp()
|
||||||
loadImageFromNetwork(url, photoView)
|
loadImageFromNetwork(url, photoView)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
// if we're not initial page, don't bother.
|
// if we're not initial page, don't bother.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user