properly show a repeat string at monthly repetition

This commit is contained in:
tibbi 2017-11-26 00:29:12 +01:00
parent 9785900e21
commit 4bb6c8b262
1 changed files with 1 additions and 1 deletions

View File

@ -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
}