diff options
author | Debajit Ghosh <debajit@google.com> | 2009-10-02 12:37:51 -0700 |
---|---|---|
committer | Debajit Ghosh <debajit@google.com> | 2009-10-02 13:04:37 -0700 |
commit | 8dcd29326bd6e6be91e22b88c422a4d7fc24dd3b (patch) | |
tree | 7f1c98148286073620f1e5d340b151d482dc29b6 | |
parent | 003962ad0c6aa4105cb1baef5eb69b70b7a0cbb4 (diff) | |
download | Calendar-8dcd29326bd6e6be91e22b88c422a4d7fc24dd3b.tar.gz |
set the attendee email when changing your own attendance in the attendees table, so some calendar provider code can update the self attendance in the Event.
-rw-r--r-- | src/com/android/calendar/EventInfoActivity.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/com/android/calendar/EventInfoActivity.java b/src/com/android/calendar/EventInfoActivity.java index ee047b35..1abcb0b6 100644 --- a/src/com/android/calendar/EventInfoActivity.java +++ b/src/com/android/calendar/EventInfoActivity.java @@ -687,10 +687,13 @@ public class EventInfoActivity extends Activity implements View.OnClickListener, } private void updateResponse(ContentResolver cr, long eventId, long attendeeId, int status) { - // Update the "selfAttendeeStatus" field for the event + // Update the attendee status in the attendees table. the provider + // takes care of updating the self attendance status. ContentValues values = new ContentValues(); - // Will need to add email when MULTIPLE_ATTENDEES_PER_EVENT supported. + if (!TextUtils.isEmpty(mCalendarOwnerAccount)) { + values.put(Attendees.ATTENDEE_EMAIL, mCalendarOwnerAccount); + } values.put(Attendees.ATTENDEE_STATUS, status); values.put(Attendees.EVENT_ID, eventId); |