mirror of
https://github.com/accelforce/Yuito
synced 2024-12-22 21:28:08 +01:00
fix NullPointerException in ViewImageFragment
This commit is contained in:
parent
f185c9d379
commit
9627d73f68
@ -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…
Reference in New Issue
Block a user