fix another crash in ViewImageFragment

main
Conny Duck 6 years ago
parent 4d305b20ae
commit 27a09a731a
  1. 2
      app/src/main/java/com/keylesspalace/tusky/fragment/ViewImageFragment.kt

@ -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…
Cancel
Save