Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/bitfireAT/ical4android.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/at/bitfire/ical4android/JtxICalObject.kt')
-rw-r--r--src/main/java/at/bitfire/ical4android/JtxICalObject.kt18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/main/java/at/bitfire/ical4android/JtxICalObject.kt b/src/main/java/at/bitfire/ical4android/JtxICalObject.kt
index 74b19cd..91d53ed 100644
--- a/src/main/java/at/bitfire/ical4android/JtxICalObject.kt
+++ b/src/main/java/at/bitfire/ical4android/JtxICalObject.kt
@@ -273,13 +273,17 @@ open class JtxICalObject(
}
// remove properties to add the rest to other
- component.properties.remove(element = component.action)
- component.properties.remove(element = component.summary)
- component.properties.remove(element = component.description)
- component.properties.remove(element = component.duration)
- component.properties.remove(element = component.attachment)
- component.properties.remove(element = component.repeat)
- component.properties.remove(element = component.trigger)
+ component.properties.removeAll(
+ setOf(
+ component.action,
+ component.summary,
+ component.description,
+ component.duration,
+ component.attachment,
+ component.repeat,
+ component.trigger
+ )
+ )
component.properties?.let { vAlarmProps -> this.other = JtxContract.getJsonStringFromXProperties(vAlarmProps) }
}
iCalObject.alarms.add(jtxAlarm)