joaophellip / MVP

Minimum Viable Product
Apache License 2.0
2 stars 0 forks source link

DownloadImage class is not cashing images #23

Closed joaophellip closed 5 years ago

joaophellip commented 5 years ago

When method storeImageToCache is called, createTempFile is throwing an exception. For now, doInBackground is not calling storeImageToCache and therefore image is always downloaded. Fix this behavior to avoid downloading image everytime it's shown in GUI.

joaophellip commented 5 years ago

Fixed getCachedImage and storeImageToCache in ImageDownload. File name is created as a hash from image url, and passed to output stream.