make old yearly events repeat on same day by default

This commit is contained in:
tibbi 2018-05-10 22:25:15 +02:00
parent 2a44362076
commit d4571237ea
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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) {