fix attendee deleting from events

This commit is contained in:
tibbi 2019-03-20 21:02:33 +01:00
parent 92ec9e29f6
commit 3c39c193f2
1 changed files with 2 additions and 2 deletions

View File

@ -1223,7 +1223,7 @@ class EventActivity : SimpleActivity() {
selectedAttendeeDismiss.setOnClickListener {
attendeeHolder.beGone()
mSelectedContacts = mSelectedContacts.filter { it.contactId == selectedAttendeeDismiss.tag }.toMutableList() as ArrayList<Attendee>
mSelectedContacts = mSelectedContacts.filter { it.toString() != selectedAttendeeDismiss.tag }.toMutableList() as ArrayList<Attendee>
}
val adapter = AutoCompleteTextViewAdapter(this, mAvailableContacts)
@ -1263,7 +1263,7 @@ class EventActivity : SimpleActivity() {
}
event_contact_dismiss.apply {
tag = attendee.contactId
tag = attendee.toString()
beGoneIf(attendee.isMe)
}