mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2024-12-25 15:52:26 +01:00
make old yearly events repeat on same day by default
This commit is contained in:
parent
2a44362076
commit
d4571237ea
@ -914,7 +914,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
||||
ArrayList()
|
||||
}
|
||||
|
||||
if (repeatInterval > 0 && repeatInterval % MONTH == 0 && repeatRule == 0) {
|
||||
if (repeatInterval > 0 && repeatRule == 0 && (repeatInterval % MONTH == 0 || repeatInterval % YEAR == 0)) {
|
||||
repeatRule = REPEAT_SAME_DAY
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,7 @@ data class Event(var id: Int = 0, var startTS: Int = 0, var endTS: Int = 0, var
|
||||
: Serializable {
|
||||
|
||||
companion object {
|
||||
private val serialVersionUID = -32456795132345616L
|
||||
private const val serialVersionUID = -32456795132345616L
|
||||
}
|
||||
|
||||
fun addIntervalTime(original: Event) {
|
||||
|
Loading…
Reference in New Issue
Block a user