Add type parameter to calendar list
This commit is contained in:
-7
@@ -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,
|
||||
)
|
||||
+1
@@ -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,
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user