Fix crash in the image viewer (#1871)
This is imperfect as it probably reduces quality of the image but it fixes the crash for now.
This commit is contained in:
parent
467c33aacb
commit
be8fc9f15a
1 changed files with 2 additions and 0 deletions
|
@ -205,6 +205,7 @@ class ViewImageFragment : ViewMediaFragment() {
|
||||||
.load(previewUrl)
|
.load(previewUrl)
|
||||||
.dontAnimate()
|
.dontAnimate()
|
||||||
.onlyRetrieveFromCache(true)
|
.onlyRetrieveFromCache(true)
|
||||||
|
.centerInside()
|
||||||
.addListener(ImageRequestListener(true, isThumnailRequest = true)))
|
.addListener(ImageRequestListener(true, isThumnailRequest = true)))
|
||||||
else it
|
else it
|
||||||
}
|
}
|
||||||
|
@ -213,6 +214,7 @@ class ViewImageFragment : ViewMediaFragment() {
|
||||||
.centerInside()
|
.centerInside()
|
||||||
.addListener(ImageRequestListener(false, isThumnailRequest = false))
|
.addListener(ImageRequestListener(false, isThumnailRequest = false))
|
||||||
)
|
)
|
||||||
|
.centerInside()
|
||||||
.addListener(ImageRequestListener(true, isThumnailRequest = false))
|
.addListener(ImageRequestListener(true, isThumnailRequest = false))
|
||||||
.into(photoView)
|
.into(photoView)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue