From 3add4214992c3dceda6c2efd25033d1e1db1a295 Mon Sep 17 00:00:00 2001 From: Niklas Baudy Date: Tue, 28 Jun 2022 20:24:13 +0200 Subject: [PATCH] CropImageView: Use customOutputUri instance property as a fallback in startCropWorkerTask. --- CHANGELOG.md | 1 + cropper/src/main/java/com/canhub/cropper/CropImageView.kt | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 119d88c6..5ea73a9d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) ## [x.x.x] - unreleased +- CropImageView: Use customOutputUri instance property as a fallback in startCropWorkerTask. [#401](https://github.com/CanHub/Android-Image-Cropper/issues/401) - CropImageOptions: Option to change progress bar color. [#390](https://github.com/CanHub/Android-Image-Cropper/issues/390) - Sample: Showcase 2:1 aspect ratio. [#386](https://github.com/CanHub/Android-Image-Cropper/issues/386) - Update dependencies [#387](https://github.com/CanHub/Android-Image-Cropper/issues/387) diff --git a/cropper/src/main/java/com/canhub/cropper/CropImageView.kt b/cropper/src/main/java/com/canhub/cropper/CropImageView.kt index 4c3170aa..4f889513 100644 --- a/cropper/src/main/java/com/canhub/cropper/CropImageView.kt +++ b/cropper/src/main/java/com/canhub/cropper/CropImageView.kt @@ -653,7 +653,7 @@ class CropImageView @JvmOverloads constructor(context: Context, attrs: Attribute options = options, saveCompressFormat = saveCompressFormat, saveCompressQuality = saveCompressQuality, - customOutputUri = customOutputUri + customOutputUri = customOutputUri, ) } @@ -1018,7 +1018,7 @@ class CropImageView @JvmOverloads constructor(context: Context, attrs: Attribute options = options, saveCompressFormat = saveCompressFormat, saveCompressQuality = saveCompressQuality, - customOutputUri = customOutputUri, + customOutputUri = customOutputUri ?: this.customOutputUri, ) )