File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
lib/src/main/kotlin/at/bitfire/ical4android Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -165,7 +165,7 @@ class AndroidCalendar<out T : AndroidEvent>(
165165
166166 var name: String? = null
167167 var displayName: String? = null
168- var accessLevel: Int? = null
168+ var accessLevel: Int = Calendars . CAL_ACCESS_NONE
169169 var color: Int? = null
170170 var isSynced = true
171171 var isVisible = true
@@ -188,7 +188,7 @@ class AndroidCalendar<out T : AndroidEvent>(
188188 private fun populate (info : ContentValues ) {
189189 name = info.getAsString(Calendars .NAME )
190190 displayName = info.getAsString(Calendars .CALENDAR_DISPLAY_NAME )
191- accessLevel = info.getAsInteger(Calendars .CALENDAR_ACCESS_LEVEL )
191+ accessLevel = info.getAsInteger(Calendars .CALENDAR_ACCESS_LEVEL ) ? : Calendars . CAL_ACCESS_NONE
192192
193193 color = info.getAsInteger(Calendars .CALENDAR_COLOR )
194194
You can’t perform that action at this time.
0 commit comments