Use guessed type for images

This commit is contained in:
M66B 2020-03-09 08:01:16 +01:00
parent 3ec8325d7b
commit af062702f9
1 changed files with 2 additions and 2 deletions

View File

@ -104,10 +104,10 @@ public class EntityAttachment {
boolean isImage() {
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.O)
if (IMAGE_TYPES8.contains(type))
if (IMAGE_TYPES8.contains(getMimeType()))
return true;
return IMAGE_TYPES.contains(type);
return IMAGE_TYPES.contains(getMimeType());
}
File getFile(Context context) {