@@ -228,7 +228,7 @@ private Bitmap tryLoadBitmap() throws TaskCancelledException {
228
228
loadedFrom = LoadedFrom .DISC_CACHE ;
229
229
230
230
checkTaskNotActual ();
231
- bitmap = decodeImage (cacheFileUri );
231
+ bitmap = decodeImage (cacheFileUri , uri );
232
232
}
233
233
if (bitmap == null || bitmap .getWidth () <= 0 || bitmap .getHeight () <= 0 ) {
234
234
log (LOG_LOAD_IMAGE_FROM_NETWORK );
@@ -238,7 +238,7 @@ private Bitmap tryLoadBitmap() throws TaskCancelledException {
238
238
options .isCacheOnDisc () && tryCacheImageOnDisc (imageFile ) ? cacheFileUri : uri ;
239
239
240
240
checkTaskNotActual ();
241
- bitmap = decodeImage (imageUriForDecoding );
241
+ bitmap = decodeImage (imageUriForDecoding , uri );
242
242
243
243
if (bitmap == null || bitmap .getWidth () <= 0 || bitmap .getHeight () <= 0 ) {
244
244
fireFailEvent (FailType .DECODING_ERROR , null );
@@ -278,9 +278,9 @@ private File getImageFileInDiscCache() {
278
278
return imageFile ;
279
279
}
280
280
281
- private Bitmap decodeImage (String imageUri ) throws IOException {
281
+ private Bitmap decodeImage (String imageUri , String originalImageUri ) throws IOException {
282
282
ViewScaleType viewScaleType = imageAware .getScaleType ();
283
- ImageDecodingInfo decodingInfo = new ImageDecodingInfo (memoryCacheKey , imageUri , targetSize , viewScaleType ,
283
+ ImageDecodingInfo decodingInfo = new ImageDecodingInfo (memoryCacheKey , imageUri , originalImageUri , targetSize , viewScaleType ,
284
284
getDownloader (), options );
285
285
return decoder .decode (decodingInfo );
286
286
}
@@ -335,7 +335,7 @@ private boolean resizeAndSaveImage(File targetFile, int maxWidth, int maxHeight)
335
335
DisplayImageOptions specialOptions = new DisplayImageOptions .Builder ().cloneFrom (options )
336
336
.imageScaleType (ImageScaleType .IN_SAMPLE_INT ).build ();
337
337
ImageDecodingInfo decodingInfo = new ImageDecodingInfo (memoryCacheKey ,
338
- Scheme .FILE .wrap (targetFile .getAbsolutePath ()), targetImageSize , ViewScaleType .FIT_INSIDE ,
338
+ Scheme .FILE .wrap (targetFile .getAbsolutePath ()), uri , targetImageSize , ViewScaleType .FIT_INSIDE ,
339
339
getDownloader (), specialOptions );
340
340
Bitmap bmp = decoder .decode (decodingInfo );
341
341
if (bmp != null && configuration .processorForDiscCache != null ) {
0 commit comments