From d018b0180a8f14e30fda78ff6379bb87097b2538 Mon Sep 17 00:00:00 2001 From: Ivan Kupalov Date: Tue, 26 Feb 2019 18:32:15 +0100 Subject: [PATCH] Fix resizing image uniformly when opening an image (#1076) --- .../java/com/keylesspalace/tusky/fragment/ViewImageFragment.kt | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/com/keylesspalace/tusky/fragment/ViewImageFragment.kt b/app/src/main/java/com/keylesspalace/tusky/fragment/ViewImageFragment.kt index 5fdec672..8f15caaf 100644 --- a/app/src/main/java/com/keylesspalace/tusky/fragment/ViewImageFragment.kt +++ b/app/src/main/java/com/keylesspalace/tusky/fragment/ViewImageFragment.kt @@ -184,6 +184,7 @@ class ViewImageFragment : ViewMediaFragment() { .networkPolicy(NetworkPolicy.NO_STORE) .resize(maxW, maxH) .onlyScaleDown() + .centerInside() .into(photoView, object : Callback { override fun onSuccess() { finishLoadingSuccessfully()