mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2024-12-24 23:40:54 +01:00
properly store attendee statuses
This commit is contained in:
parent
389b50c553
commit
adf5a45810
@ -1312,6 +1312,8 @@ class EventActivity : SimpleActivity() {
|
||||
beVisibleIf(attendee.showStatusImage())
|
||||
setImageDrawable(getAttendeeStatusImage(attendee))
|
||||
}
|
||||
|
||||
mAttendees.firstOrNull { it.name == ATTENDEE_ME }?.status = attendee.status
|
||||
}
|
||||
}
|
||||
|
||||
@ -1324,7 +1326,6 @@ class EventActivity : SimpleActivity() {
|
||||
private fun getAllAttendees(): String {
|
||||
var attendees = ArrayList<Attendee>()
|
||||
mSelectedContacts.forEach {
|
||||
it.status = CalendarContract.Attendees.ATTENDEE_STATUS_INVITED
|
||||
attendees.add(it)
|
||||
}
|
||||
|
||||
|
@ -368,7 +368,7 @@ class CalDAVHelper(val context: Context) {
|
||||
val contentValues = ContentValues().apply {
|
||||
put(CalendarContract.Attendees.ATTENDEE_NAME, it.name)
|
||||
put(CalendarContract.Attendees.ATTENDEE_EMAIL, it.email)
|
||||
put(CalendarContract.Attendees.ATTENDEE_STATUS, CalendarContract.Attendees.ATTENDEE_STATUS_ACCEPTED)
|
||||
put(CalendarContract.Attendees.ATTENDEE_STATUS, it.status)
|
||||
put(CalendarContract.Attendees.EVENT_ID, event.getCalDAVEventId())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user