From 4e292e32dd8eb7a5416241debf7e680c9e961788 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 16 Apr 2017 12:28:41 +0200 Subject: [PATCH] fix exporting events repeating multiple times a day by x weeks --- .../com/simplemobiletools/calendar/helpers/IcsExporter.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsExporter.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsExporter.kt index c41bc07bf..b01685d52 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsExporter.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/helpers/IcsExporter.kt @@ -99,7 +99,7 @@ class IcsExporter { } private fun getByDay(event: Event): String { - return if (event.repeatInterval != WEEK) { + return if (event.repeatInterval == 0 || event.repeatInterval % WEEK != 0) { "" } else { val days = getByDayString(event.repeatRule)