Fixed adding of new contact
This commit is contained in:
@ -204,6 +204,10 @@ sealed class Contact {
|
||||
BaresipService.contactUpdate.postValue(System.nanoTime())
|
||||
}
|
||||
|
||||
fun addBaresipContact(contact: BaresipContact) {
|
||||
BaresipService.baresipContacts.add(contact)
|
||||
}
|
||||
|
||||
fun removeBaresipContact(contact: BaresipContact) {
|
||||
BaresipService.baresipContacts.remove(contact)
|
||||
saveBaresipContacts()
|
||||
|
||||
@ -269,7 +269,7 @@ class ContactActivity : AppCompatActivity() {
|
||||
addOrUpdateAndroidContact(this, contact)
|
||||
} else {
|
||||
if (newContact)
|
||||
Contact.contacts().add(contact)
|
||||
Contact.addBaresipContact(contact)
|
||||
Contact.saveBaresipContacts()
|
||||
Contact.contactsUpdate()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user