remove Last day of the month repetititon if date changes to not last day
This commit is contained in:
parent
109f3a3f3e
commit
13d0934ab0
|
@ -578,6 +578,8 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
||||||
setRepeatRule(Math.pow(2.0, (mEventStartDateTime.dayOfWeek - 1).toDouble()).toInt())
|
setRepeatRule(Math.pow(2.0, (mEventStartDateTime.dayOfWeek - 1).toDouble()).toInt())
|
||||||
}
|
}
|
||||||
} else if (mRepeatInterval.isXMonthlyRepetition()) {
|
} else if (mRepeatInterval.isXMonthlyRepetition()) {
|
||||||
|
if (mRepeatRule == REPEAT_MONTH_LAST_DAY && !isLastDayOfTheMonth())
|
||||||
|
mRepeatRule = REPEAT_MONTH_SAME_DAY
|
||||||
checkRepetitionRuleText()
|
checkRepetitionRuleText()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue