Commit f9f34569 authored by rhi's avatar rhi 🐑
Browse files

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
import androidx.core.content.ContextCompat
import at.bitfire.cert4android.CustomCertManager
import at.bitfire.ical4android.AndroidCalendar
import at.bitfire.ical4android.CalendarStorageException
import at.bitfire.ical4android.Event
import at.bitfire.icsdroid.db.CalendarCredentials
......@@ -35,6 +36,9 @@ class ProcessEventsTask(
Thread.currentThread().contextClassLoader = context.classLoader
try {
// provide iCalendar event color values to Android
AndroidCalendar.insertColors(calendar.provider, calendar.account)
} catch(e: CalendarStorageException) {
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