fix temp file permission denied

// FREEBIE
This commit is contained in:
Jake McGinty 2015-01-05 14:39:05 -08:00
parent e67dafe9c8
commit 9fed60628d

View File

@ -124,7 +124,7 @@ public class AttachmentDownloadJob extends MasterSecretJob implements Injectable
private File createTempFile() throws InvalidPartException { private File createTempFile() throws InvalidPartException {
try { try {
File file = File.createTempFile("push-attachment", "tmp"); File file = File.createTempFile("push-attachment", "tmp", context.getCacheDir());
file.deleteOnExit(); file.deleteOnExit();
return file; return file;