nostra13 / Android-Universal-Image-Loader

Powerful and flexible library for loading, caching and displaying images on Android.
Apache License 2.0
16.78k stars 6.1k forks source link

404 not handle properly, when there is no image available for valid url #895

Open Deminem opened 9 years ago

Deminem commented 9 years ago

In this particular scenario, the library keep throwing image decoding errors and also trying to make irrelevant network request with displayImage while scrolling in the listView.

Image can't be decoded [https://demo.buddycloud.org:443/api/topics@topics.buddycloud.org/media/avatar?maxheight=200_120x120]

I believe, the library should provide either http statusCode or introduce new FailedReason to handle this situation. Also showImageForEmptyUri(null) not handle this issue properly.

leicht-io commented 9 years ago

I would also like to be able to handle the HTTP status code inside: public void onLoadingFailed(String imageUri, View view, FailReason failReason).