Fix missed case related to old CalendarProvider change
* We missed a case in which we needed to add asSyncAdapter when
writing ExtendedProperties to CalendarProvider2
* This breaks any attempt to upload changes to attendee status
* Finding this at the last moment is Yet another indication of
how our Exchange testing is painfully broken
* The fix is extremely safe, and recommended for all branches
Bug: 5576733
Change-Id: Ibe28b82e329ed81f59b1a4db04e9b09ea7854198
diff --git a/src/com/android/exchange/adapter/CalendarSyncAdapter.java b/src/com/android/exchange/adapter/CalendarSyncAdapter.java
index 1d1059f..b467eb7 100644
--- a/src/com/android/exchange/adapter/CalendarSyncAdapter.java
+++ b/src/com/android/exchange/adapter/CalendarSyncAdapter.java
@@ -2143,8 +2143,10 @@
cidValues.clear();
cidValues.put(ExtendedProperties.VALUE,
Integer.toString(currentStatus));
- cr.update(ContentUris.withAppendedId(ExtendedProperties.CONTENT_URI,
- userAttendeeStatusId), cidValues, null, null);
+ cr.update(asSyncAdapter(ContentUris.withAppendedId(
+ ExtendedProperties.CONTENT_URI, userAttendeeStatusId),
+ mEmailAddress, Eas.EXCHANGE_ACCOUNT_MANAGER_TYPE),
+ cidValues, null, null);
// Send mail to the organizer advising of the new status
EmailContent.Message msg =
CalendarUtilities.createMessageForEventId(mContext, eventId,