fix: use baseConfig instead of ContactsConfig

This commit is contained in:
ismailnurudeen
2023-02-21 13:15:48 +01:00
parent c47604bd6e
commit 66ff093a66
19 changed files with 129 additions and 124 deletions

View File

@ -30,7 +30,7 @@ fun SimpleActivity.startCallIntent(recipient: String) {
}
fun SimpleActivity.tryStartCall(contact: Contact) {
if (contactsConfig.showCallConfirmation) {
if (this.baseConfig.showCallConfirmation) {
CallConfirmationDialog(this, contact.getNameToDisplay()) {
startCall(contact)
}
@ -107,7 +107,7 @@ fun BaseSimpleActivity.shareContacts(contacts: ArrayList<Contact>) {
}
fun SimpleActivity.handleGenericContactClick(contact: Contact) {
when (contactsConfig.onContactClick) {
when (this.baseConfig.onContactClick) {
ON_CLICK_CALL_CONTACT -> callContact(contact)
ON_CLICK_VIEW_CONTACT -> viewContact(contact)
ON_CLICK_EDIT_CONTACT -> editContact(contact)