public void run() { if (isViewWasReused()) { if (loggingEnabled) L.i(LOG_TASK_CANCELLED, memoryCacheKey); listener.onLoadingCancelled(imageUri, imageView); } else { if (loggingEnabled) L.i(LOG_DISPLAY_IMAGE_IN_IMAGEVIEW, memoryCacheKey); Bitmap displayedBitmap = displayer.display(bitmap, imageView); listener.onLoadingComplete(imageUri, imageView, displayedBitmap); engine.cancelDisplayTaskFor(imageView); } }
imageView.setImageBitmap(null); listener.onLoadingComplete(uri, imageView, null); return; } else { options.getDisplayer().display(bmp, imageView); listener.onLoadingComplete(uri, imageView, bmp);