Merge "Fix bug #1661857 (switch from using meta feed to the new allcalendars feed)"
This commit is contained in:
commit
200afe8c36
@ -1649,7 +1649,7 @@ public class CalendarSyncAdapter extends AbstractSyncAdapter {
|
||||
}
|
||||
|
||||
// Send exception deleted flag if necessary
|
||||
Integer deleted = entityValues.getAsInteger(Events.DELETED);
|
||||
Integer deleted = entityValues.getAsInteger(Calendar.EventsColumns.DELETED);
|
||||
boolean isDeleted = deleted != null && deleted == 1;
|
||||
Integer eventStatus = entityValues.getAsInteger(Events.STATUS);
|
||||
boolean isCanceled = eventStatus != null && eventStatus.equals(Events.STATUS_CANCELED);
|
||||
@ -1789,7 +1789,7 @@ public class CalendarSyncAdapter extends AbstractSyncAdapter {
|
||||
cr.update(ContentUris.withAppendedId(EVENTS_URI, eventId), cidValues,
|
||||
null, null);
|
||||
} else {
|
||||
if (entityValues.getAsInteger(Events.DELETED) == 1) {
|
||||
if (entityValues.getAsInteger(Calendar.EventsColumns.DELETED) == 1) {
|
||||
userLog("Deleting event with serverId: ", serverId);
|
||||
s.start(Tags.SYNC_DELETE).data(Tags.SYNC_SERVER_ID, serverId).end();
|
||||
mDeletedIdList.add(eventId);
|
||||
@ -1855,7 +1855,7 @@ public class CalendarSyncAdapter extends AbstractSyncAdapter {
|
||||
exEntity.addSubValue(ncv.uri, ncv.values);
|
||||
}
|
||||
|
||||
if ((getInt(exValues, Events.DELETED) == 1) ||
|
||||
if ((getInt(exValues, Calendar.EventsColumns.DELETED) == 1) ||
|
||||
(getInt(exValues, Events.STATUS) ==
|
||||
Events.STATUS_CANCELED)) {
|
||||
flag = Message.FLAG_OUTGOING_MEETING_CANCEL;
|
||||
|
Loading…
Reference in New Issue
Block a user