OSDN Git Service

set the attendee email when changing your own attendance in the attendees table,...
authorDebajit Ghosh <debajit@google.com>
Fri, 2 Oct 2009 19:37:51 +0000 (12:37 -0700)
committerDebajit Ghosh <debajit@google.com>
Fri, 2 Oct 2009 20:04:37 +0000 (13:04 -0700)
src/com/android/calendar/EventInfoActivity.java

index ee047b3..1abcb0b 100644 (file)
@@ -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);