From d648ef85045fb97d8d1f6a637e915fa912a6c6c9 Mon Sep 17 00:00:00 2001 From: Connor Emma Date: Fri, 17 Jul 2020 00:02:09 -0600 Subject: [PATCH] fix(android): make center ResizeMode work correctly --- .../java/com/dylanvann/fastimage/FastImageViewConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/android/src/main/java/com/dylanvann/fastimage/FastImageViewConverter.java b/android/src/main/java/com/dylanvann/fastimage/FastImageViewConverter.java index 030632e..d86f66f 100644 --- a/android/src/main/java/com/dylanvann/fastimage/FastImageViewConverter.java +++ b/android/src/main/java/com/dylanvann/fastimage/FastImageViewConverter.java @@ -55,7 +55,7 @@ class FastImageViewConverter { put("contain", ScaleType.FIT_CENTER); put("cover", ScaleType.CENTER_CROP); put("stretch", ScaleType.FIT_XY); - put("center", ScaleType.CENTER); + put("center", ScaleType.CENTER_INSIDE); }}; // Resolve the source uri to a file path that android understands.