properly show a repeat string at monthly repetition
This commit is contained in:
parent
9785900e21
commit
4bb6c8b262
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue