1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-26 17:57:16 +00:00

Touch downloaded image files

This commit is contained in:
M66B 2020-03-31 08:45:18 +02:00
parent 223023f343
commit 3ddc4c4c9d

View file

@ -495,6 +495,8 @@ class ImageHelper {
File file = getCacheFile(context, id, source);
if (file.exists()) {
Log.i("Using cached " + file);
file.setLastModified(new Date().getTime());
Bitmap bm = BitmapFactory.decodeFile(file.getAbsolutePath());
if (bm != null) {
Drawable d = new BitmapDrawable(context.getResources(), bm);