Android Universal image loader, stop retry

后端 未结 1 1489
北海茫月
北海茫月 2021-01-26 03:53

I use the UIL lib in my app, I get the images from my Amazon S3 server.
I\'ve overridden the BaseImageDownloader class :

protected InputStrea         


        
相关标签:
1条回答
  • 2021-01-26 04:39

    UIL doesn't retry image loading itself. If you return null then you'll got onLoadingFailed(...) callback. If you call displayImage(...) for the same URL again then UIL will try to load image again.

    If you want to prevent it then you should keep "bad" URLs somewhere and not call ImageLoader for these URLs, or return null in ImageDownloader fro these URLs.

    0 讨论(0)
提交回复
热议问题