17
17
18
18
import android .graphics .Bitmap ;
19
19
import android .os .Handler ;
20
+
20
21
import com .nostra13 .universalimageloader .cache .disc .DiscCacheAware ;
21
22
import com .nostra13 .universalimageloader .core .assist .FailReason ;
22
23
import com .nostra13 .universalimageloader .core .assist .FailReason .FailType ;
@@ -228,7 +229,7 @@ private Bitmap tryLoadBitmap() throws TaskCancelledException {
228
229
loadedFrom = LoadedFrom .DISC_CACHE ;
229
230
230
231
checkTaskNotActual ();
231
- bitmap = decodeImage (cacheFileUri , uri );
232
+ bitmap = decodeImage (cacheFileUri );
232
233
}
233
234
if (bitmap == null || bitmap .getWidth () <= 0 || bitmap .getHeight () <= 0 ) {
234
235
log (LOG_LOAD_IMAGE_FROM_NETWORK );
@@ -238,7 +239,7 @@ private Bitmap tryLoadBitmap() throws TaskCancelledException {
238
239
options .isCacheOnDisc () && tryCacheImageOnDisc (imageFile ) ? cacheFileUri : uri ;
239
240
240
241
checkTaskNotActual ();
241
- bitmap = decodeImage (imageUriForDecoding , uri );
242
+ bitmap = decodeImage (imageUriForDecoding );
242
243
243
244
if (bitmap == null || bitmap .getWidth () <= 0 || bitmap .getHeight () <= 0 ) {
244
245
fireFailEvent (FailType .DECODING_ERROR , null );
@@ -278,9 +279,9 @@ private File getImageFileInDiscCache() {
278
279
return imageFile ;
279
280
}
280
281
281
- private Bitmap decodeImage (String imageUri , String originalImageUri ) throws IOException {
282
+ private Bitmap decodeImage (String imageUri ) throws IOException {
282
283
ViewScaleType viewScaleType = imageAware .getScaleType ();
283
- ImageDecodingInfo decodingInfo = new ImageDecodingInfo (memoryCacheKey , imageUri , originalImageUri , targetSize , viewScaleType ,
284
+ ImageDecodingInfo decodingInfo = new ImageDecodingInfo (memoryCacheKey , imageUri , uri , targetSize , viewScaleType ,
284
285
getDownloader (), options );
285
286
return decoder .decode (decodingInfo );
286
287
}
0 commit comments