mirror of
https://github.com/M66B/FairEmail.git
synced 2024-12-28 10:47:28 +00:00
Update event with no duration
This commit is contained in:
parent
1f66598d39
commit
071a2362a7
1 changed files with 11 additions and 0 deletions
|
@ -281,6 +281,17 @@ public class CalendarHelper {
|
|||
" location=" + location +
|
||||
" status=" + status);
|
||||
} else {
|
||||
/*
|
||||
java.lang.IllegalArgumentException: Cannot have both DTEND and DURATION in an event
|
||||
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:172)
|
||||
at android.database.DatabaseUtils.readExceptionFromParcel(DatabaseUtils.java:142)
|
||||
at android.content.ContentProviderProxy.update(ContentProviderNative.java:685)
|
||||
at android.content.ContentResolver.update(ContentResolver.java:2416)
|
||||
at android.content.ContentResolver.update(ContentResolver.java:2378)
|
||||
at eu.faircode.email.CalendarHelper.insert(CalendarHelper:285)
|
||||
*/
|
||||
values.put(CalendarContract.Events.DURATION, "");
|
||||
|
||||
Uri uri = ContentUris.withAppendedId(CalendarContract.Events.CONTENT_URI, existId);
|
||||
int rows = resolver.update(uri, values, null, null);
|
||||
EntityLog.log(context, EntityLog.Type.General, message, "Updated event" +
|
||||
|
|
Loading…
Reference in a new issue