Fix resizing image uniformly when opening an image (#1076)
This commit is contained in:
parent
5ee78e68ba
commit
15b441b180
|
@ -184,6 +184,7 @@ class ViewImageFragment : ViewMediaFragment() {
|
||||||
.networkPolicy(NetworkPolicy.NO_STORE)
|
.networkPolicy(NetworkPolicy.NO_STORE)
|
||||||
.resize(maxW, maxH)
|
.resize(maxW, maxH)
|
||||||
.onlyScaleDown()
|
.onlyScaleDown()
|
||||||
|
.centerInside()
|
||||||
.into(photoView, object : Callback {
|
.into(photoView, object : Callback {
|
||||||
override fun onSuccess() {
|
override fun onSuccess() {
|
||||||
finishLoadingSuccessfully()
|
finishLoadingSuccessfully()
|
||||||
|
|
Loading…
Reference in New Issue