fix NullPointerException in ViewImageFragment
This commit is contained in:
parent
12ba4747d8
commit
f5ec6b1ef7
1 changed files with 1 additions and 1 deletions
|
@ -85,7 +85,7 @@ class ViewImageFragment : ViewMediaFragment() {
|
|||
.into(photoView, object : Callback {
|
||||
override fun onSuccess() {
|
||||
// if we loaded image from disk, we should check that view is attached.
|
||||
if (ViewCompat.isAttachedToWindow(photoView)) {
|
||||
if (photoView?.isAttachedToWindow == true) {
|
||||
finishLoadingSuccessfully()
|
||||
} else {
|
||||
// if view is not attached yet, wait for an attachment and
|
||||
|
|
Loading…
Reference in a new issue