catch and show errors thrown at updating event types

This commit is contained in:
tibbi 2022-02-09 20:05:47 +01:00
parent aaccafa839
commit 20c37dd89c
1 changed files with 2 additions and 0 deletions

View File

@ -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)
}
}