Use guessed type for images

pull/175/head
M66B 5 years ago
parent 3ec8325d7b
commit af062702f9

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

Loading…
Cancel
Save