catch and show errors thrown at updating event types
This commit is contained in:
parent
aaccafa839
commit
20c37dd89c
|
@ -107,6 +107,8 @@ class CalDAVHelper(val context: Context) {
|
|||
context.contentResolver.update(uri, values, null, null)
|
||||
context.eventTypesDB.insertOrUpdate(eventType)
|
||||
} catch (e: IllegalArgumentException) {
|
||||
} catch (e: SecurityException) {
|
||||
context.showErrorToast(e)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue