Re-generate contact name list when baresip contacts are updated
This commit is contained in:
@@ -335,6 +335,7 @@ class ContactActivity : AppCompatActivity() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Contact.save()
|
Contact.save()
|
||||||
|
Utils.reloadContactNames()
|
||||||
|
|
||||||
BaresipService.activities.remove("contact,$newContact,$uOrI")
|
BaresipService.activities.remove("contact,$newContact,$uOrI")
|
||||||
val i = Intent(this, MainActivity::class.java)
|
val i = Intent(this, MainActivity::class.java)
|
||||||
|
|||||||
@@ -122,6 +122,7 @@ class ContactListAdapter(private val ctx: Context, private val rows: ArrayList<C
|
|||||||
ContactActivity.deleteAndroidContact(ctx, contact)
|
ContactActivity.deleteAndroidContact(ctx, contact)
|
||||||
Contact.contacts().removeAt(position)
|
Contact.contacts().removeAt(position)
|
||||||
Contact.save()
|
Contact.save()
|
||||||
|
Utils.reloadContactNames()
|
||||||
this.notifyDataSetChanged()
|
this.notifyDataSetChanged()
|
||||||
}
|
}
|
||||||
DialogInterface.BUTTON_NEGATIVE -> {
|
DialogInterface.BUTTON_NEGATIVE -> {
|
||||||
|
|||||||
Reference in New Issue
Block a user