Skip to content

Commit 4a48210

Browse files
authored
Behavior Change: Always try to return resized bitmap in CropResult. (#509)
1 parent a1fcad7 commit 4a48210

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

cropper/src/main/kotlin/com/canhub/cropper/BitmapCroppingWorkerJob.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,10 @@ internal class BitmapCroppingWorkerJob(
9494
compressQuality = saveCompressQuality,
9595
customOutputUri = customOutputUri,
9696
)
97-
resizedBitmap.recycle()
97+
9898
onPostExecute(
9999
Result(
100+
bitmap = resizedBitmap,
100101
uri = newUri,
101102
sampleSize = bitmapSampled.sampleSize,
102103
),

0 commit comments

Comments
 (0)