Removed timezone mapping

This commit is contained in:
M66B
2023-10-27 17:26:58 +02:00
parent 97a7dbfb56
commit 4f87b4a1ff
7 changed files with 22 additions and 295 deletions

View File

@@ -3693,7 +3693,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
@Override
protected ICalendar onExecute(Context context, Bundle args) throws IOException {
File file = (File) args.getSerializable("file");
return Biweekly.parse(file).first();
return CalendarHelper.parse(context, file);
}
@Override
@@ -3870,7 +3870,7 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
for (EntityAttachment attachment : attachments)
if (attachment.available && "text/calendar".equals(attachment.getMimeType())) {
File file = attachment.getFile(context);
ICalendar icalendar = Biweekly.parse(file).first();
ICalendar icalendar = CalendarHelper.parse(context, file);
CalendarScale scale = (icalendar.getCalendarScale() == null
? CalendarScale.gregorian()
: icalendar.getCalendarScale());