remove Last day of the month repetititon if date changes to not last day

This commit is contained in:
tibbi 2017-05-08 19:19:31 +02:00
parent 109f3a3f3e
commit 13d0934ab0
1 changed files with 2 additions and 0 deletions

View File

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