adding some crashfixes
This commit is contained in:
parent
434c017dd1
commit
aa25ce1659
|
@ -25,7 +25,7 @@ class ManageEventTypesActivity : SimpleActivity(), DeleteEventTypesListener {
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun showEventTypeDialog(eventType: EventType? = null) {
|
private fun showEventTypeDialog(eventType: EventType? = null) {
|
||||||
UpdateEventTypeDialog(this, eventType!!.copy()) {
|
UpdateEventTypeDialog(this, eventType?.copy()) {
|
||||||
getEventTypes()
|
getEventTypes()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -104,7 +104,7 @@ data class Event(var id: Int = 0, var startTS: Int = 0, var endTS: Int = 0, var
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getCalDAVEventId() = (importId.split("-").lastOrNull() ?: "0").toString().toLong()
|
fun getCalDAVEventId() = if (importId.contains("-")) (importId.split("-").lastOrNull() ?: "0").toString().toLong() else 0L
|
||||||
|
|
||||||
fun getCalDAVCalendarId() = (source.split("-").lastOrNull() ?: "0").toString().toInt()
|
fun getCalDAVCalendarId() = if (source.contains("-")) (source.split("-").lastOrNull() ?: "0").toString().toInt() else 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue