Save on ref images / edit

This commit is contained in:
M66B
2019-11-08 10:19:09 +01:00
parent b3480453ad
commit 1e945e69e5
2 changed files with 27 additions and 60 deletions

View File

@@ -219,13 +219,17 @@ public class EntityMessage implements Serializable {
return new File(dir, id + "." + revision);
}
File getRefFile(Context context) {
static File getRefFile(Context context, Long id) {
File dir = new File(context.getFilesDir(), "references");
if (!dir.exists())
dir.mkdir();
return new File(dir, id.toString());
}
File getRefFile(Context context) {
return getRefFile(context, id);
}
File getRawFile(Context context) {
File dir = new File(context.getFilesDir(), "raw");
if (!dir.exists())