Fix issue with deleted recurrence
* It turns out that this bug is due to a bad rebase/merge for a previous CL
in which the changed code appears in its new form AND old form
* Fixes change SHA c3aa318200
(CL 48406)
* Don't say it.
Bug: 2587775
Change-Id: I3f70a97e498db30345452b942909448049680fdf
This commit is contained in:
parent
c07cd159d4
commit
627006a8e3
@ -1552,6 +1552,15 @@ public class CalendarSyncAdapter extends AbstractSyncAdapter {
|
||||
(getInt(exValues, Events.STATUS) ==
|
||||
Events.STATUS_CANCELED)) {
|
||||
flag = Message.FLAG_OUTGOING_MEETING_CANCEL;
|
||||
if (!selfOrganizer) {
|
||||
// Send a cancellation notice to the organizer
|
||||
// Since CalendarProvider2 sets the organizer of exceptions
|
||||
// to the user, we have to reset it first to the original
|
||||
// organizer
|
||||
exValues.put(Events.ORGANIZER,
|
||||
entityValues.getAsString(Events.ORGANIZER));
|
||||
sendDeclinedEmail(exEntity, clientId);
|
||||
}
|
||||
} else {
|
||||
flag = Message.FLAG_OUTGOING_MEETING_INVITE;
|
||||
}
|
||||
@ -1573,28 +1582,6 @@ public class CalendarSyncAdapter extends AbstractSyncAdapter {
|
||||
entityValues.getAsString(Events.EVENT_LOCATION));
|
||||
}
|
||||
|
||||
if ((getInt(exValues, Events.DELETED) == 1) ||
|
||||
(getInt(exValues, Events.STATUS) ==
|
||||
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;
|
||||
if (!selfOrganizer) {
|
||||
// Send a cancellation notice to the organizer
|
||||
// Since CalendarProvider2 sets the organizer of exceptions
|
||||
// to the user, we have to reset it first to the original
|
||||
// organizer
|
||||
exValues.put(Events.ORGANIZER,
|
||||
entityValues.getAsString(Events.ORGANIZER));
|
||||
sendDeclinedEmail(exEntity, clientId);
|
||||
}
|
||||
} else {
|
||||
mUploadedIdList.add(exEventId);
|
||||
flag = Message.FLAG_OUTGOING_MEETING_INVITE;
|
||||
}
|
||||
|
||||
if (selfOrganizer) {
|
||||
Message msg =
|
||||
CalendarUtilities.createMessageForEntity(mContext,
|
||||
|
Loading…
Reference in New Issue
Block a user