Fix resizing image uniformly when opening an image (#1076)

main
Ivan Kupalov 6 years ago committed by Konrad Pozniak
parent b8ca60da1c
commit d018b0180a
  1. 1
      app/src/main/java/com/keylesspalace/tusky/fragment/ViewImageFragment.kt

@ -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…
Cancel
Save