move the contact click handling in the proper activities

This commit is contained in:
tibbi
2019-12-06 20:49:12 +01:00
parent 9aac2414fd
commit 6ea7994a08
10 changed files with 71 additions and 19 deletions

View File

@ -101,7 +101,7 @@ fun BaseSimpleActivity.shareContacts(contacts: ArrayList<Contact>) {
}
}
fun SimpleActivity.contactClicked(contact: Contact) {
fun SimpleActivity.handleGenericContactClick(contact: Contact) {
when (config.onContactClick) {
ON_CLICK_CALL_CONTACT -> callContact(contact)
ON_CLICK_VIEW_CONTACT -> viewContact(contact)