Check for images only on reply

This commit is contained in:
M66B
2019-05-06 07:36:44 +02:00
parent c5a569afe3
commit feaea0416e
2 changed files with 7 additions and 3 deletions

View File

@@ -76,6 +76,10 @@ public class EntityAttachment {
return (disposition != null && disposition.equalsIgnoreCase(Part.INLINE));
}
boolean isImage() {
return type.startsWith("image/");
}
File getFile(Context context) {
File dir = new File(context.getFilesDir(), "attachments");
if (!dir.exists())