summaryrefslogtreecommitdiffstats
path: root/src/com/android/calendar/EventInfoActivity.java
diff options
context:
space:
mode:
authorDebajit Ghosh <debajit@google.com>2009-09-28 00:04:20 -0700
committerDebajit Ghosh <debajit@google.com>2009-09-28 10:55:43 -0700
commit668b7111b25e97339a906ddfb6f8e84f59e8e885 (patch)
treed8d710fc6e9527879e79f2937075fd8fcbf86591 /src/com/android/calendar/EventInfoActivity.java
parent0f30a3a8e8cd6bfba414390e91177b5df2154daf (diff)
downloadandroid_packages_apps_Calendar-668b7111b25e97339a906ddfb6f8e84f59e8e885.tar.gz
android_packages_apps_Calendar-668b7111b25e97339a906ddfb6f8e84f59e8e885.tar.bz2
android_packages_apps_Calendar-668b7111b25e97339a906ddfb6f8e84f59e8e885.zip
fix bug in event response logic: if guests have been hidden, you should be able to respond to the event.
Diffstat (limited to 'src/com/android/calendar/EventInfoActivity.java')
-rw-r--r--src/com/android/calendar/EventInfoActivity.java14
1 files changed, 10 insertions, 4 deletions
diff --git a/src/com/android/calendar/EventInfoActivity.java b/src/com/android/calendar/EventInfoActivity.java
index 0619c0aa..02f6997e 100644
--- a/src/com/android/calendar/EventInfoActivity.java
+++ b/src/com/android/calendar/EventInfoActivity.java
@@ -1007,10 +1007,16 @@ public class EventInfoActivity extends Activity implements View.OnClickListener,
}
void updateResponse() {
- // you can only accept/reject/etc. a meeting if:
- // a) you can edit the event's containing calendar
- // b) you're not the organizer and only attendee
- if (!mCanModifyCalendar || (mIsOrganizer && mNumOfAttendees <= 1)) {
+ // we only let the user accept/reject/etc. a meeting if:
+ // a) you can edit the event's containing calendar AND
+ // b) you're not the organizer and only attendee
+ // (if the attendee data has been hidden, the visible number of attendees
+ // will be 1 -- the calendar owner's).
+ // (there are more cases involved to be 100% accurate, such as
+ // paying attention to whether or not an attendee status was
+ // included in the feed, but we're currently omitting those corner cases
+ // for simplicity).
+ if (!mCanModifyCalendar || (mHasAttendeeData && mIsOrganizer && mNumOfAttendees <= 1)) {
setVisibilityCommon(R.id.response_container, View.GONE);
return;
}