mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-26 08:27:49 +01:00
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…
x
Reference in New Issue
Block a user