mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
catch and show errors thrown at updating event types
This commit is contained in:
@@ -107,6 +107,8 @@ class CalDAVHelper(val context: Context) {
|
|||||||
context.contentResolver.update(uri, values, null, null)
|
context.contentResolver.update(uri, values, null, null)
|
||||||
context.eventTypesDB.insertOrUpdate(eventType)
|
context.eventTypesDB.insertOrUpdate(eventType)
|
||||||
} catch (e: IllegalArgumentException) {
|
} catch (e: IllegalArgumentException) {
|
||||||
|
} catch (e: SecurityException) {
|
||||||
|
context.showErrorToast(e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user