Consider images without name as inline

This commit is contained in:
M66B
2019-12-14 13:23:50 +01:00
parent d88abeaab5
commit f88879f8df
4 changed files with 11 additions and 8 deletions

View File

@@ -109,6 +109,10 @@ public class EntityAttachment {
return IMAGE_TYPES.contains(type);
}
boolean isInlineImage() {
return ((isInline() || TextUtils.isEmpty(name)) && isImage());
}
File getFile(Context context) {
return getFile(context, id, name);
}