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/ICalendar.kt')
-rw-r--r--src/main/java/at/bitfire/ical4android/ICalendar.kt6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/at/bitfire/ical4android/ICalendar.kt b/src/main/java/at/bitfire/ical4android/ICalendar.kt
index d9e0788..a6ea234 100644
--- a/src/main/java/at/bitfire/ical4android/ICalendar.kt
+++ b/src/main/java/at/bitfire/ical4android/ICalendar.kt
@@ -44,7 +44,7 @@ open class ICalendar {
// known iCalendar properties
const val CALENDAR_NAME = "X-WR-CALNAME"
- const val CALENDAR_COLOR = "COLOR"
+ const val CALENDAR_COLOR = "X-APPLE-CALENDAR-COLOR"
/**
* Default PRODID used when generating iCalendars. If you want another value, set it
@@ -95,6 +95,10 @@ open class ICalendar {
calendar.getProperty<Property>(CALENDAR_NAME)?.let { calName ->
properties[CALENDAR_NAME] = calName.value
}
+
+ calendar.getProperty<Property>(Color.PROPERTY_NAME)?.let { calColor ->
+ properties[Color.PROPERTY_NAME] = calColor.value
+ }
calendar.getProperty<Property>(CALENDAR_COLOR)?.let { calColor ->
properties[CALENDAR_COLOR] = calColor.value
}