fix NullPointerException in ViewImageFragment
This commit is contained in:
parent
f185c9d379
commit
9627d73f68
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ class ViewImageFragment : ViewMediaFragment() {
|
||||||
} else {
|
} else {
|
||||||
// if view is not attached yet, wait for an attachment and
|
// if view is not attached yet, wait for an attachment and
|
||||||
// start transition when it's finally ready.
|
// start transition when it's finally ready.
|
||||||
photoView.addOnAttachStateChangeListener(
|
photoView?.addOnAttachStateChangeListener(
|
||||||
object : View.OnAttachStateChangeListener {
|
object : View.OnAttachStateChangeListener {
|
||||||
override fun onViewAttachedToWindow(v: View?) {
|
override fun onViewAttachedToWindow(v: View?) {
|
||||||
finishLoadingSuccessfully()
|
finishLoadingSuccessfully()
|
||||||
|
|
Loading…
Add table
Reference in a new issue