From 41b18085f1c66ae47a7c40839bafb716ca74ae53 Mon Sep 17 00:00:00 2001 From: Peter Abbondanzo Date: Wed, 18 Sep 2024 09:58:38 -0700 Subject: [PATCH] Minor fixes in image request, decoded images string builder Reviewed By: yungsters, kartavya-ramnani Differential Revision: D62786986 fbshipit-source-id: f6a437f36b5911dec9a42d1f434c686946a4655a --- .../facebook/imagepipeline/request/ImageRequestBuilder.java | 3 ++- .../com/facebook/fresco/vito/options/DecodedImageOptions.kt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/imagepipeline/src/main/java/com/facebook/imagepipeline/request/ImageRequestBuilder.java b/imagepipeline/src/main/java/com/facebook/imagepipeline/request/ImageRequestBuilder.java index 1a8ed81e3f..88efad4a93 100644 --- a/imagepipeline/src/main/java/com/facebook/imagepipeline/request/ImageRequestBuilder.java +++ b/imagepipeline/src/main/java/com/facebook/imagepipeline/request/ImageRequestBuilder.java @@ -107,7 +107,8 @@ public static ImageRequestBuilder fromRequest(ImageRequest imageRequest) { .setShouldDecodePrefetches(imageRequest.shouldDecodePrefetches()) .setDelayMs(imageRequest.getDelayMs()) .setDiskCacheId(imageRequest.getDiskCacheId()) - .setDownsampleOverride(imageRequest.getDownsampleOverride()); + .setDownsampleOverride(imageRequest.getDownsampleOverride()) + .setResizingAllowedOverride(imageRequest.getResizingAllowedOverride()); } public static void addCustomUriNetworkScheme(String scheme) { diff --git a/vito/options/src/main/java/com/facebook/fresco/vito/options/DecodedImageOptions.kt b/vito/options/src/main/java/com/facebook/fresco/vito/options/DecodedImageOptions.kt index 0681791653..0938e564e9 100644 --- a/vito/options/src/main/java/com/facebook/fresco/vito/options/DecodedImageOptions.kt +++ b/vito/options/src/main/java/com/facebook/fresco/vito/options/DecodedImageOptions.kt @@ -84,7 +84,7 @@ open class DecodedImageOptions(builder: Builder<*>) : EncodedImageOptions(builde super.toStringHelper() .add("resizeOptions", resizeOptions) .add("downsampleOverride", downsampleOverride) - .add("rotationOptions", resizeOptions) + .add("rotationOptions", rotationOptions) .add("postprocessor", postprocessor) .add("imageDecodeOptions", imageDecodeOptions) .add("roundingOptions", roundingOptions)