From cfe47c7bebe9bea92aab32f10ae768b30e05e612 Mon Sep 17 00:00:00 2001 From: M66B Date: Sun, 26 Jan 2020 18:09:39 +0100 Subject: [PATCH] Use fixed attachment type for ICS recognition --- app/src/main/java/eu/faircode/email/AdapterMessage.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/eu/faircode/email/AdapterMessage.java b/app/src/main/java/eu/faircode/email/AdapterMessage.java index d1ac0c028f..71f784446a 100644 --- a/app/src/main/java/eu/faircode/email/AdapterMessage.java +++ b/app/src/main/java/eu/faircode/email/AdapterMessage.java @@ -1791,7 +1791,7 @@ public class AdapterMessage extends RecyclerView.Adapter attachments = db.attachment().getAttachments(id); for (EntityAttachment attachment : attachments) - if (attachment.available && "text/calendar".equals(attachment.type)) { + if (attachment.available && "text/calendar".equals(attachment.getMimeType())) { File file = attachment.getFile(context); ICalendar icalendar = Biweekly.parse(file).first(); VEvent event = icalendar.getEvents().get(0);