mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
set repeating on the same day by default at choosing yearly repetition
This commit is contained in:
@@ -218,10 +218,10 @@ class EventActivity : SimpleActivity() {
|
|||||||
updateRepetitionText()
|
updateRepetitionText()
|
||||||
checkRepeatTexts(interval)
|
checkRepeatTexts(interval)
|
||||||
|
|
||||||
if (mRepeatInterval.isXWeeklyRepetition()) {
|
when {
|
||||||
setRepeatRule(Math.pow(2.0, (mEventStartDateTime.dayOfWeek - 1).toDouble()).toInt())
|
mRepeatInterval.isXWeeklyRepetition() -> setRepeatRule(Math.pow(2.0, (mEventStartDateTime.dayOfWeek - 1).toDouble()).toInt())
|
||||||
} else if (mRepeatInterval.isXMonthlyRepetition()) {
|
mRepeatInterval.isXMonthlyRepetition() -> setRepeatRule(REPEAT_SAME_DAY)
|
||||||
setRepeatRule(REPEAT_SAME_DAY)
|
mRepeatInterval.isXYearlyRepetition() -> setRepeatRule(REPEAT_SAME_DAY)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user