From 3c39c193f280b85ef2e1e324f93f9f46cd7cbbb5 Mon Sep 17 00:00:00 2001 From: tibbi Date: Wed, 20 Mar 2019 21:02:33 +0100 Subject: [PATCH] fix attendee deleting from events --- .../calendar/pro/activities/EventActivity.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt index 9922a1771..f1da95d31 100644 --- a/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt +++ b/app/src/main/kotlin/com/simplemobiletools/calendar/pro/activities/EventActivity.kt @@ -1223,7 +1223,7 @@ class EventActivity : SimpleActivity() { selectedAttendeeDismiss.setOnClickListener { attendeeHolder.beGone() - mSelectedContacts = mSelectedContacts.filter { it.contactId == selectedAttendeeDismiss.tag }.toMutableList() as ArrayList + mSelectedContacts = mSelectedContacts.filter { it.toString() != selectedAttendeeDismiss.tag }.toMutableList() as ArrayList } 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) }