Fixed "Prefix too short"

This commit is contained in:
M66B 2019-08-03 13:31:18 +02:00
parent 8b3edfe1fe
commit d2d20dd6ee
2 changed files with 2 additions and 2 deletions

View File

@ -1369,7 +1369,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
response.setMethod(Method.REPLY);
response.addEvent(ev);
File ics = File.createTempFile(Long.toString(attachment.id), ".ics", context.getCacheDir());
File ics = File.createTempFile("calendar", ".ics", context.getCacheDir());
response.write(ics);
return ics;

View File

@ -1913,7 +1913,7 @@ public class FragmentCompose extends FragmentBase {
resized = rotated;
}
File tmp = File.createTempFile(Long.toString(attachment.id), ".resized", context.getCacheDir());
File tmp = File.createTempFile("image", ".resized", context.getCacheDir());
try (OutputStream out = new FileOutputStream(tmp)) {
resized.compress("image/jpeg".equals(attachment.type)
? Bitmap.CompressFormat.JPEG