allow clicking on Create New Contact at select contact screen

This commit is contained in:
tibbi
2019-12-06 21:26:10 +01:00
parent 21cd58f0bb
commit ba7e7e4ba0
9 changed files with 17 additions and 30 deletions

View File

@ -104,7 +104,7 @@ class GroupContactsActivity : SimpleActivity(), RemoveFromGroupListener, Refresh
val currAdapter = group_contacts_list.adapter
if (currAdapter == null) {
ContactsAdapter(this, contacts, this, LOCATION_GROUP_CONTACTS, this, group_contacts_list, group_contacts_fastscroller) {
contactClicked(it as Contact)
contactClicked(it as Contact, false)
}.apply {
group_contacts_list.adapter = this
}
@ -123,8 +123,8 @@ class GroupContactsActivity : SimpleActivity(), RemoveFromGroupListener, Refresh
refreshContacts()
}
override fun contactClicked(contact: Contact) {
handleGenericContactClick(contact)
override fun contactClicked(contact: Contact?, isCreateNewContact: Boolean) {
handleGenericContactClick(contact!!)
}
override fun removeFromGroup(contacts: ArrayList<Contact>) {