mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
update the repeat rule text as appropriate at yearly repetition too
This commit is contained in:
@@ -853,7 +853,7 @@ class EventActivity : SimpleActivity() {
|
|||||||
if (day == MONDAY_BIT || day == TUESDAY_BIT || day == WEDNESDAY_BIT || day == THURSDAY_BIT || day == FRIDAY_BIT || day == SATURDAY_BIT || day == SUNDAY_BIT) {
|
if (day == MONDAY_BIT || day == TUESDAY_BIT || day == WEDNESDAY_BIT || day == THURSDAY_BIT || day == FRIDAY_BIT || day == SATURDAY_BIT || day == SUNDAY_BIT) {
|
||||||
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() || mRepeatInterval.isXYearlyRepetition()) {
|
||||||
if (mRepeatRule == REPEAT_LAST_DAY && !isLastDayOfTheMonth())
|
if (mRepeatRule == REPEAT_LAST_DAY && !isLastDayOfTheMonth())
|
||||||
mRepeatRule = REPEAT_SAME_DAY
|
mRepeatRule = REPEAT_SAME_DAY
|
||||||
checkRepetitionRuleText()
|
checkRepetitionRuleText()
|
||||||
|
Reference in New Issue
Block a user