mirror of
https://github.com/M66B/FairEmail.git
synced 2025-02-26 07:53:12 +00:00
Use guessed type for images
This commit is contained in:
parent
3ec8325d7b
commit
af062702f9
1 changed files with 2 additions and 2 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue