mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 04:10:45 +01:00
use proper event type id at caldav events
This commit is contained in:
parent
49ec9a59f5
commit
04b0bbbc96
3
app/proguard-rules.pro
vendored
3
app/proguard-rules.pro
vendored
@ -1,9 +1,6 @@
|
|||||||
# Joda
|
# Joda
|
||||||
-dontwarn org.joda.time.**
|
-dontwarn org.joda.time.**
|
||||||
|
|
||||||
-keep class com.google.common.**
|
|
||||||
-dontwarn com.google.common.**
|
|
||||||
|
|
||||||
-renamesourcefileattribute SourceFile
|
-renamesourcefileattribute SourceFile
|
||||||
-keepattributes SourceFile, LineNumberTable, Signature, RuntimeVisibleAnnotations,AnnotationDefault
|
-keepattributes SourceFile, LineNumberTable, Signature, RuntimeVisibleAnnotations,AnnotationDefault
|
||||||
|
|
||||||
|
@ -33,8 +33,7 @@ class CalDAVHandler(val context: Context) {
|
|||||||
dbHelper.updateLocalEventType(this)
|
dbHelper.updateLocalEventType(this)
|
||||||
}
|
}
|
||||||
|
|
||||||
val eventTypeId = dbHelper.getEventTypeIdWithTitle(it.getFullTitle())
|
CalDAVHandler(context).fetchCalDAVCalendarEvents(it.id, localEventType!!.id)
|
||||||
CalDAVHandler(context).fetchCalDAVCalendarEvents(it.id, eventTypeId)
|
|
||||||
}
|
}
|
||||||
context.scheduleCalDAVSync(true)
|
context.scheduleCalDAVSync(true)
|
||||||
callback()
|
callback()
|
||||||
|
@ -758,7 +758,7 @@ class DBHelper private constructor(val context: Context) : SQLiteOpenHelper(cont
|
|||||||
|
|
||||||
private fun fillEvents(cursor: Cursor?): List<Event> {
|
private fun fillEvents(cursor: Cursor?): List<Event> {
|
||||||
val eventTypeColors = SparseIntArray()
|
val eventTypeColors = SparseIntArray()
|
||||||
val eventTypes = fetchEventTypes().forEach {
|
fetchEventTypes().forEach {
|
||||||
eventTypeColors.put(it.id, it.color)
|
eventTypeColors.put(it.id, it.color)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user