1
0
mirror of https://github.com/moparisthebest/k-9 synced 2024-11-15 14:05:05 -05:00

mark thumbnails as .tmp files that should be explicitly gced on start.

This commit is contained in:
Jesse Vincent 2010-07-19 05:32:45 +00:00
parent 7de3aeb740
commit 65e318a80e

View File

@ -189,7 +189,7 @@ public class AttachmentProvider extends ContentProvider
{
int width = Integer.parseInt(segments.get(3));
int height = Integer.parseInt(segments.get(4));
String filename = "thmb_" + dbName + "_" + id;
String filename = "thmb_" + dbName + "_" + id + ".tmp";
File dir = getContext().getCacheDir();
File file = new File(dir, filename);
if (!file.exists())