am aeeefedb
: Thumbnail cache file should be deleted when AttachmentProvider is created.
Merge commit 'aeeefedb43c40e887850654ac88270755f5631c1' * commit 'aeeefedb43c40e887850654ac88270755f5631c1': Thumbnail cache file should be deleted when AttachmentProvider is created.
This commit is contained in:
commit
94386cce2a
@ -87,7 +87,8 @@ public class AttachmentProvider extends ContentProvider {
|
||||
*/
|
||||
File[] files = getContext().getCacheDir().listFiles();
|
||||
for (File file : files) {
|
||||
if (file.getName().endsWith(".tmp")) {
|
||||
String filename = file.getName();
|
||||
if (filename.endsWith(".tmp") || filename.startsWith("thmb_")) {
|
||||
file.delete();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user