+
Skip to content
This repository was archived by the owner on Jun 9, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions lib/src/main/kotlin/at/bitfire/ical4android/AndroidEvent.kt
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ abstract class AndroidEvent(
// scheduling
if (groupScheduled) {
// ORGANIZER must only be set for group-scheduled events (= events with attendees)
if (row.containsKey(Events.ORGANIZER) && groupScheduled)
if (row.containsKey(Events.ORGANIZER))
try {
event.organizer = Organizer(URI("mailto", row.getAsString(Events.ORGANIZER), null))
} catch (e: URISyntaxException) {
Expand Down Expand Up @@ -489,7 +489,7 @@ abstract class AndroidEvent(
EXTNAME_URL ->
try {
event.url = URI(rawValue)
} catch(e: URISyntaxException) {
} catch(_: URISyntaxException) {
logger.warning("Won't process invalid local URL: $rawValue")
}

Expand Down Expand Up @@ -703,9 +703,11 @@ abstract class AndroidEvent(
var rebuild = false
if (event.status == null)
calendar.provider.query(eventSyncURI(), arrayOf(Events.STATUS), null, null, null)?.use { cursor ->
cursor.moveToNext()
if (!cursor.isNull(0)) // Events.STATUS != null
rebuild = true
if (cursor.moveToNext()) {
val statusIndex = cursor.getColumnIndexOrThrow(Events.STATUS)
if (!cursor.isNull(statusIndex))
rebuild = true
}
}

if (rebuild) { // delete whole event and insert updated event
Expand Down
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载