Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 330e2156 authored by Debajit Ghosh's avatar Debajit Ghosh Committed by Android Git Automerger
Browse files

am 8dcd2932: set the attendee email when changing your own attendance in the...

am 8dcd2932: 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.

Merge commit '8dcd2932' into eclair-mr2

* commit '8dcd2932':
  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.
parents 9c6f59cf 8dcd2932
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -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);