mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
properly store attendee statuses
This commit is contained in:
@@ -1312,6 +1312,8 @@ class EventActivity : SimpleActivity() {
|
|||||||
beVisibleIf(attendee.showStatusImage())
|
beVisibleIf(attendee.showStatusImage())
|
||||||
setImageDrawable(getAttendeeStatusImage(attendee))
|
setImageDrawable(getAttendeeStatusImage(attendee))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mAttendees.firstOrNull { it.name == ATTENDEE_ME }?.status = attendee.status
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1324,7 +1326,6 @@ class EventActivity : SimpleActivity() {
|
|||||||
private fun getAllAttendees(): String {
|
private fun getAllAttendees(): String {
|
||||||
var attendees = ArrayList<Attendee>()
|
var attendees = ArrayList<Attendee>()
|
||||||
mSelectedContacts.forEach {
|
mSelectedContacts.forEach {
|
||||||
it.status = CalendarContract.Attendees.ATTENDEE_STATUS_INVITED
|
|
||||||
attendees.add(it)
|
attendees.add(it)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -368,7 +368,7 @@ class CalDAVHelper(val context: Context) {
|
|||||||
val contentValues = ContentValues().apply {
|
val contentValues = ContentValues().apply {
|
||||||
put(CalendarContract.Attendees.ATTENDEE_NAME, it.name)
|
put(CalendarContract.Attendees.ATTENDEE_NAME, it.name)
|
||||||
put(CalendarContract.Attendees.ATTENDEE_EMAIL, it.email)
|
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())
|
put(CalendarContract.Attendees.EVENT_ID, event.getCalDAVEventId())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user