Only set ORIGINAL_INSTANCE_TIME in exceptions
* We were setting this for all events, but apparently CalendarProvider does not approve, and generates warnings * Only set this for exceptions Bug: 2550631 Change-Id: I8a7152eb0d4233432b1a5b5664da964d5433fbae
This commit is contained in:
parent
627006a8e3
commit
3fdaa32969
@ -361,7 +361,6 @@ public class CalendarSyncAdapter extends AbstractSyncAdapter {
|
||||
case Tags.CALENDAR_START_TIME:
|
||||
startTime = Utility.parseDateTimeToMillis(getValue());
|
||||
cv.put(Events.DTSTART, startTime);
|
||||
cv.put(Events.ORIGINAL_INSTANCE_TIME, startTime);
|
||||
break;
|
||||
case Tags.CALENDAR_END_TIME:
|
||||
endTime = Utility.parseDateTimeToMillis(getValue());
|
||||
@ -455,7 +454,6 @@ public class CalendarSyncAdapter extends AbstractSyncAdapter {
|
||||
cal.set(GregorianCalendar.MINUTE, 0);
|
||||
cal.set(GregorianCalendar.SECOND, 0);
|
||||
cv.put(Events.DTSTART, cal.getTimeInMillis());
|
||||
cv.put(Events.ORIGINAL_INSTANCE_TIME, cal.getTimeInMillis());
|
||||
} else {
|
||||
cv.put(Events.DURATION, "P" + ((endTime - startTime) / MINUTES) + "M");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user