diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsExporter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsExporter.kt index b182073c9..0d5118915 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsExporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/helpers/IcsExporter.kt @@ -58,7 +58,7 @@ class IcsExporter { event.eventType.let { out.writeLn("$CATEGORY_COLOR${activity.eventTypesDB.getEventTypeWithId(it)?.color}") } event.eventType.let { out.writeLn("$CATEGORIES${activity.eventTypesDB.getEventTypeWithId(it)?.title}") } event.lastUpdated.let { out.writeLn("$LAST_MODIFIED:${Formatter.getExportedTime(it)}") } - event.location.let { out.writeLn("$LOCATION:$it") } + event.location.let { if (it.isNotEmpty()) out.writeLn("$LOCATION:$it") } event.availability.let { out.writeLn("$TRANSP${if (it == Events.AVAILABILITY_FREE) TRANSPARENT else OPAQUE}") } if (event.getIsAllDay()) { @@ -138,9 +138,5 @@ class IcsExporter { isFirstLine = false index += MAX_LINE_LENGTH } - - if (isFirstLine) { - out.writeLn("$DESCRIPTION$description") - } } }