Commit f9f34569 authored by Ricki Hirner's avatar Ricki Hirner

Support per-event colors

parent d2cd995d
Pipeline #47607527 passed with stage
in 7 minutes and 32 seconds
...@@ -10,6 +10,7 @@ import android.util.Log ...@@ -10,6 +10,7 @@ import android.util.Log
import androidx.core.app.NotificationCompat import androidx.core.app.NotificationCompat
import androidx.core.content.ContextCompat import androidx.core.content.ContextCompat
import at.bitfire.cert4android.CustomCertManager import at.bitfire.cert4android.CustomCertManager
import at.bitfire.ical4android.AndroidCalendar
import at.bitfire.ical4android.CalendarStorageException import at.bitfire.ical4android.CalendarStorageException
import at.bitfire.ical4android.Event import at.bitfire.ical4android.Event
import at.bitfire.icsdroid.db.CalendarCredentials import at.bitfire.icsdroid.db.CalendarCredentials
...@@ -35,6 +36,9 @@ class ProcessEventsTask( ...@@ -35,6 +36,9 @@ class ProcessEventsTask(
Thread.currentThread().contextClassLoader = context.classLoader Thread.currentThread().contextClassLoader = context.classLoader
try { try {
// provide iCalendar event color values to Android
AndroidCalendar.insertColors(calendar.provider, calendar.account)
processEvents() processEvents()
} catch(e: CalendarStorageException) { } catch(e: CalendarStorageException) {
Log.e(Constants.TAG, "Couldn't access local calendars", e) Log.e(Constants.TAG, "Couldn't access local calendars", e)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment