Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.

Commit fdac75d

Browse files
committed
Query without dtstart
1 parent e960d42 commit fdac75d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/src/main/kotlin/at/bitfire/ical4android/JtxCollection.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -184,12 +184,12 @@ open class JtxCollection<out T: JtxICalObject>(val account: Account,
184184
* @return Content Values of the found item with the given UID or null if the result was empty or more than 1
185185
* The query checks for the [uid] within all collections of this account, not only the current collection.
186186
*/
187-
fun queryRecur(uid: String, recurid: String, dtstart: Long): ContentValues? {
187+
fun queryRecur(uid: String, recurid: String): ContentValues? {
188188
client.query(
189189
JtxContract.JtxICalObject.CONTENT_URI.asSyncAdapter(account),
190190
null,
191-
"${JtxContract.JtxICalObject.UID} = ? AND ${JtxContract.JtxICalObject.RECURID} = ? AND ${JtxContract.JtxICalObject.DTSTART} = ?",
192-
arrayOf(uid, recurid, dtstart.toString()),
191+
"${JtxContract.JtxICalObject.UID} = ? AND ${JtxContract.JtxICalObject.RECURID} = ?",
192+
arrayOf(uid, recurid),
193193
null
194194
).use { cursor ->
195195
logger.fine("queryByUID: found ${cursor?.count} records in ${account.name}")

0 commit comments

Comments
 (0)