mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
Notify user when an error occurs
https://github.com/SimpleMobileTools/Simple-Calendar/issues/1601
This commit is contained in:
@@ -152,7 +152,8 @@ class CalDAVHelper(val context: Context) {
|
||||
val existingEvents = try {
|
||||
context.eventsDB.getEventsFromCalDAVCalendar("$CALDAV-$calendarId")
|
||||
} catch (e: Exception) {
|
||||
ArrayList()
|
||||
context.showErrorToast(context.getString(R.string.unknown_error_occurred))
|
||||
return
|
||||
}
|
||||
|
||||
existingEvents.forEach {
|
||||
|
Reference in New Issue
Block a user