mirror of
https://github.com/M66B/FairEmail.git
synced 2026-04-06 00:53:26 +02:00
Touch downloaded image files
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user