mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-30 13:47:05 +02:00
Always download attachments by properties
This commit is contained in:
@@ -81,6 +81,10 @@ public class EntityAttachment {
|
||||
}
|
||||
|
||||
File getFile(Context context) {
|
||||
return getFile(context, id, name);
|
||||
}
|
||||
|
||||
static File getFile(Context context, long id, String name) {
|
||||
File dir = new File(context.getFilesDir(), "attachments");
|
||||
if (!dir.exists())
|
||||
dir.mkdir();
|
||||
@@ -130,4 +134,10 @@ public class EntityAttachment {
|
||||
} else
|
||||
return false;
|
||||
}
|
||||
|
||||
@NonNull
|
||||
@Override
|
||||
public String toString() {
|
||||
return (this.name + " type=" + this.type + " disposition=" + this.disposition + " cid=" + this.cid + " size=" + this.size);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user