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
|
@Override
|
||||||
public void onClick(View view) {
|
public void onClick(View view) {
|
||||||
mContact.delete();
|
mContact.delete();
|
||||||
|
// To ensure removed contact won't appear in the contacts list anymore
|
||||||
|
ContactsManager.getInstance().fetchContactsAsync();
|
||||||
LinphoneActivity.instance().displayContacts(false);
|
LinphoneActivity.instance().displayContacts(false);
|
||||||
dialog.dismiss();
|
dialog.dismiss();
|
||||||
}
|
}
|
||||||
|
|
|
@ -484,6 +484,9 @@ public class ContactsManager extends ContentObserver implements FriendListListen
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
Log.e("[Contacts Manager] " + e);
|
Log.e("[Contacts Manager] " + e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// To ensure removed contacts won't appear in the contacts list anymore
|
||||||
|
fetchContactsAsync();
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getString(int resourceID) {
|
public String getString(int resourceID) {
|
||||||
|
|
Loading…
Reference in a new issue