Ensure contacts list is updated after contact(s) removal
This commit is contained in:
parent
690fb488b7
commit
910ccd69c5
2 changed files with 5 additions and 0 deletions
|
@ -364,6 +364,8 @@ public class ContactDetailsFragment extends Fragment
|
|||
@Override
|
||||
public void onClick(View view) {
|
||||
mContact.delete();
|
||||
// To ensure removed contact won't appear in the contacts list anymore
|
||||
ContactsManager.getInstance().fetchContactsAsync();
|
||||
LinphoneActivity.instance().displayContacts(false);
|
||||
dialog.dismiss();
|
||||
}
|
||||
|
|
|
@ -484,6 +484,9 @@ public class ContactsManager extends ContentObserver implements FriendListListen
|
|||
} catch (Exception e) {
|
||||
Log.e("[Contacts Manager] " + e);
|
||||
}
|
||||
|
||||
// To ensure removed contacts won't appear in the contacts list anymore
|
||||
fetchContactsAsync();
|
||||
}
|
||||
|
||||
public String getString(int resourceID) {
|
||||
|
|
Loading…
Reference in a new issue