From 4bb6c8b2626650dd293123ef6bc4840c14e336c2 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 26 Nov 2017 00:29:12 +0100 Subject: [PATCH] properly show a repeat string at monthly repetition --- .../com/simplemobiletools/calendar/activities/EventActivity.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt index 3a3624e04..ccabc96c2 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/activities/EventActivity.kt @@ -282,7 +282,7 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener { private fun getOrderString(repeatRule: Int): String { val dayOfMonth = mEventStartDateTime.dayOfMonth var order = (dayOfMonth - 1) / 7 + 1 - if (order == 4 && repeatRule == REPEAT_MONTH_ORDER_WEEKDAY_USE_LAST) { + if (order == 4 && isLastWeekDayOfMonth() && repeatRule == REPEAT_MONTH_ORDER_WEEKDAY_USE_LAST) { order = -1 }