Fix bug #1661857 (switch from using meta feed to the new allcalendars feed)

- update Events.DELETE constant

Change-Id: I3876025d8052d291029ad2bc2bfde2ed241dda2d
This commit is contained in:
Fabrice Di Meglio 2010-05-21 20:11:04 -07:00
parent c537b7018e
commit ecaddea386

View File

@ -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;