File tree Expand file tree Collapse file tree
app/src/main/java/at/bitfire/icsdroid/model Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,17 +44,17 @@ class ValidationUseCase @Inject constructor(
4444 ) {
4545 InputStreamReader (data, contentType?.charset() ? : Charsets .UTF_8 ).use { reader ->
4646 val properties = mutableMapOf<String , String >()
47- val events = Event .Companion . eventsFromReader(reader, properties)
47+ val events = Event .eventsFromReader(reader, properties)
4848
49- info.calendarName = properties[ICalendar .Companion . CALENDAR_NAME ] ? : displayName
49+ info.calendarName = properties[ICalendar .CALENDAR_NAME ] ? : displayName
5050 info.calendarColor =
5151 // try COLOR first
5252 properties[Color .PROPERTY_NAME ]?.let { colorValue ->
5353 Css3Color .colorFromString(colorValue)
5454 } ? : run {
5555 // try X-APPLE-CALENDAR-COLOR second
5656 try {
57- properties[ICalendar .Companion . CALENDAR_COLOR ]?.let { colorValue ->
57+ properties[ICalendar .CALENDAR_COLOR ]?.let { colorValue ->
5858 Css3Color .colorFromString(colorValue)
5959 }
6060 } catch (e: IllegalArgumentException ) {
You can’t perform that action at this time.
0 commit comments