1
0
mirror of https://github.com/accelforce/Yuito synced 2024-12-30 17:47:23 +01:00

fix another crash in ViewImageFragment

This commit is contained in:
Conny Duck 2018-12-12 19:37:18 +01:00
parent a0c399e2cf
commit c3e5305fa2

View File

@ -105,8 +105,10 @@ class ViewImageFragment : ViewMediaFragment() {
override fun onError() {
// if there's no image in cache, load from network and start transition
// immediately.
photoActionsListener.onBringUp()
loadImageFromNetwork(url, photoView)
if (isAdded) {
photoActionsListener.onBringUp()
loadImageFromNetwork(url, photoView)
}
}
})
} else {