mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-01 02:21:37 +01:00
Small improvement
This commit is contained in:
@@ -38,6 +38,8 @@ import java.util.List;
|
||||
import java.util.Locale;
|
||||
import java.util.Objects;
|
||||
|
||||
import javax.mail.Part;
|
||||
|
||||
import static androidx.room.ForeignKey.CASCADE;
|
||||
|
||||
@Entity(
|
||||
@@ -96,9 +98,14 @@ public class EntityAttachment {
|
||||
public Boolean available = false;
|
||||
public String error;
|
||||
|
||||
// Gmail sends inline images as attachments with a name and cid
|
||||
|
||||
boolean isInline() {
|
||||
// Gmail sends inline images as attachments with a name and cid
|
||||
return (cid != null);
|
||||
return (Part.INLINE.equals(disposition) || cid != null);
|
||||
}
|
||||
|
||||
boolean isAttachment() {
|
||||
return (Part.ATTACHMENT.equals(disposition) || !TextUtils.isEmpty(name));
|
||||
}
|
||||
|
||||
boolean isImage() {
|
||||
|
||||
Reference in New Issue
Block a user