mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
show existing event attendee photos, if available
This commit is contained in:
@ -1149,7 +1149,12 @@ class EventActivity : SimpleActivity() {
|
||||
|
||||
private fun updateAttendees() {
|
||||
mAttendees.forEach {
|
||||
addAttendee(it)
|
||||
val attendee = it
|
||||
val deviceContact = mAvailableContacts.firstOrNull { it.email.isNotEmpty() && it.email == attendee.email && it.photoUri.isNotEmpty() }
|
||||
if (deviceContact != null) {
|
||||
attendee.photoUri = deviceContact.photoUri
|
||||
}
|
||||
addAttendee(attendee)
|
||||
}
|
||||
addAttendee()
|
||||
|
||||
|
Reference in New Issue
Block a user