Merge "Always add changed exceptions to the upload list" into froyo
This commit is contained in:
commit
536a36555b
@ -1531,18 +1531,17 @@ public class CalendarSyncAdapter extends AbstractSyncAdapter {
|
|||||||
// attendees about it
|
// attendees about it
|
||||||
long exEventId = exValues.getAsLong(Events._ID);
|
long exEventId = exValues.getAsLong(Events._ID);
|
||||||
int flag;
|
int flag;
|
||||||
|
|
||||||
if ((getInt(exValues, Events.DELETED) == 1) ||
|
if ((getInt(exValues, Events.DELETED) == 1) ||
|
||||||
(getInt(exValues, Events.STATUS) ==
|
(getInt(exValues, Events.STATUS) ==
|
||||||
Events.STATUS_CANCELED)) {
|
Events.STATUS_CANCELED)) {
|
||||||
// Add the eventId of the exception to the proper list, so that
|
|
||||||
// the dirty bit is cleared or the event is deleted after the
|
|
||||||
// sync has completed
|
|
||||||
mDeletedIdList.add(exEventId);
|
|
||||||
flag = Message.FLAG_OUTGOING_MEETING_CANCEL;
|
flag = Message.FLAG_OUTGOING_MEETING_CANCEL;
|
||||||
} else {
|
} else {
|
||||||
mUploadedIdList.add(exEventId);
|
|
||||||
flag = Message.FLAG_OUTGOING_MEETING_INVITE;
|
flag = Message.FLAG_OUTGOING_MEETING_INVITE;
|
||||||
}
|
}
|
||||||
|
// Add the eventId of the exception to the uploaded id list, so that
|
||||||
|
// the dirty/mark bits are cleared
|
||||||
|
mUploadedIdList.add(exEventId);
|
||||||
|
|
||||||
// Copy subvalues into the exception; otherwise, we won't see the
|
// Copy subvalues into the exception; otherwise, we won't see the
|
||||||
// attendees when preparing the message
|
// attendees when preparing the message
|
||||||
|
Loading…
Reference in New Issue
Block a user