@@ -71,30 +71,30 @@ class IcsExporter(private val context: Context) {
7171 }
7272 }
7373
74- private fun fillReminders (event : Event , outputStream : OutputStream , reminderLabel : String ) {
74+ private fun fillReminders (event : Event , out : OutputStream , reminderLabel : String ) {
7575 event.getReminders().forEach { reminder ->
76- outputStream .writeContentLine(BEGIN_ALARM )
77- outputStream .writeTextProperty(DESCRIPTION , reminderLabel)
76+ out .writeContentLine(BEGIN_ALARM )
77+ out .writeTextProperty(DESCRIPTION , reminderLabel)
7878 if (reminder.type == REMINDER_NOTIFICATION ) {
79- outputStream .writeContentLine(" $ACTION$DISPLAY " )
79+ out .writeContentLine(" $ACTION$DISPLAY " )
8080 } else {
81- outputStream .writeContentLine(" $ACTION$EMAIL " )
81+ out .writeContentLine(" $ACTION$EMAIL " )
8282 val attendee =
8383 calendars.firstOrNull { it.id == event.getCalDAVCalendarId() }?.accountName
8484 if (attendee != null ) {
85- outputStream .writeContentLine(" $ATTENDEE$MAILTO$attendee " )
85+ out .writeContentLine(" $ATTENDEE$MAILTO$attendee " )
8686 }
8787 }
8888
8989 val sign = if (reminder.minutes < - 1 ) " " else " -"
90- outputStream .writeContentLine(" $TRIGGER :$sign${Parser ().getDurationCode(abs(reminder.minutes.toLong()))} " )
91- outputStream .writeContentLine(END_ALARM )
90+ out .writeContentLine(" $TRIGGER :$sign${Parser ().getDurationCode(abs(reminder.minutes.toLong()))} " )
91+ out .writeContentLine(END_ALARM )
9292 }
9393 }
9494
95- private fun fillIgnoredOccurrences (event : Event , outputStream : OutputStream ) {
95+ private fun fillIgnoredOccurrences (event : Event , out : OutputStream ) {
9696 event.repetitionExceptions.forEach {
97- outputStream .writeContentLine(" $EXDATE :$it " )
97+ out .writeContentLine(" $EXDATE :$it " )
9898 }
9999 }
100100
0 commit comments