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)
|
||||
.dontAnimate()
|
||||
.onlyRetrieveFromCache(true)
|
||||
.centerInside()
|
||||
.addListener(ImageRequestListener(true, isThumnailRequest = true)))
|
||||
else it
|
||||
}
|
||||
|
@ -213,6 +214,7 @@ class ViewImageFragment : ViewMediaFragment() {
|
|||
.centerInside()
|
||||
.addListener(ImageRequestListener(false, isThumnailRequest = false))
|
||||
)
|
||||
.centerInside()
|
||||
.addListener(ImageRequestListener(true, isThumnailRequest = false))
|
||||
.into(photoView)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue