Skip to content

Commit

Permalink
AndroidCalendar, JtxCollection: add syncId column
Browse files Browse the repository at this point in the history
  • Loading branch information
rfc2822 committed Nov 24, 2024
1 parent c2857ad commit 1ecb919
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,4 +125,4 @@ class AndroidCalendarTest {
}
}

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,8 @@ abstract class AndroidCalendar<out T: AndroidEvent>(

var ownerAccount: String? = null

var syncId: String? = null


/**
* Sets the calendar properties ([name], [displayName] etc.) from the passed argument,
Expand All @@ -186,6 +188,8 @@ abstract class AndroidCalendar<out T: AndroidEvent>(
isVisible = info.getAsInteger(Calendars.VISIBLE) != 0

ownerAccount = info.getAsString(Calendars.OWNER_ACCOUNT)

syncId = info.getAsString(Calendars._SYNC_ID)
}


Expand Down
4 changes: 4 additions & 0 deletions lib/src/main/kotlin/at/bitfire/ical4android/JtxCollection.kt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,8 @@ open class JtxCollection<out T: JtxICalObject>(val account: Account,
var supportsVTODO = true
var supportsVJOURNAL = true

var syncId: Long? = null

var context: Context? = null


Expand All @@ -85,6 +87,8 @@ open class JtxCollection<out T: JtxICalObject>(val account: Account,
supportsVJOURNAL = values.getAsString(JtxContract.JtxCollection.SUPPORTSVJOURNAL) == "1"
|| values.getAsString(JtxContract.JtxCollection.SUPPORTSVJOURNAL) == "true"

syncId = values.getAsLong(JtxContract.JtxCollection.SYNC_ID)

this.context = context
}

Expand Down

0 comments on commit 1ecb919

Please sign in to comment.