Fixed "Prefix too short"

pull/160/head
M66B 5 years ago
parent 8b3edfe1fe
commit d2d20dd6ee

@ -1369,7 +1369,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
response.setMethod(Method.REPLY); response.setMethod(Method.REPLY);
response.addEvent(ev); 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); response.write(ics);
return ics; return ics;

@ -1913,7 +1913,7 @@ public class FragmentCompose extends FragmentBase {
resized = rotated; 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)) { try (OutputStream out = new FileOutputStream(tmp)) {
resized.compress("image/jpeg".equals(attachment.type) resized.compress("image/jpeg".equals(attachment.type)
? Bitmap.CompressFormat.JPEG ? Bitmap.CompressFormat.JPEG

Loading…
Cancel
Save