fix NullPointerException in ViewImageFragment

main
Conny Duck 6 years ago
parent d58041773a
commit 715573361d
  1. 2
      app/src/main/java/com/keylesspalace/tusky/fragment/ViewImageFragment.kt

@ -90,7 +90,7 @@ class ViewImageFragment : ViewMediaFragment() {
} else {
// if view is not attached yet, wait for an attachment and
// start transition when it's finally ready.
photoView.addOnAttachStateChangeListener(
photoView?.addOnAttachStateChangeListener(
object : View.OnAttachStateChangeListener {
override fun onViewAttachedToWindow(v: View?) {
finishLoadingSuccessfully()

Loading…
Cancel
Save