Add type parameter to calendar list

This commit is contained in:
MM20
2024-08-15 17:55:45 +02:00
parent d263f8cbbc
commit bf29ce6f08
7 changed files with 46 additions and 7 deletions
@@ -71,10 +71,3 @@ internal data class AndroidCalendarEvent(
}
}
data class CalendarList(
val id: String,
val name: String,
val owner: String?,
val color: Int,
val providerId: String,
)
@@ -0,0 +1,12 @@
package de.mm20.launcher2.calendar.providers
import de.mm20.launcher2.search.calendar.CalendarListType
data class CalendarList(
val id: String,
val name: String,
val owner: String?,
val color: Int,
val types: List<CalendarListType>,
val providerId: String,
)
@@ -174,6 +174,7 @@ class PluginCalendarProvider(
color = cursor[CalendarListColumns.Color] ?: 0,
name = cursor[CalendarListColumns.Name] ?: continue,
owner = cursor[CalendarListColumns.AccountName],
types = cursor[CalendarListColumns.ContentTypes] ?: continue,
providerId = pluginAuthority,
)
}