Fix possibly a duplicate of contacts
This commit is contained in:
parent
0d16e8d7b7
commit
88fe4dd3f8
1 changed files with 15 additions and 15 deletions
|
@ -270,6 +270,7 @@ public class ContactsManager extends ContentObserver {
|
|||
List<LinphoneContact> contacts = new ArrayList<LinphoneContact>();
|
||||
List<LinphoneContact> sipContacts = new ArrayList<LinphoneContact>();
|
||||
Date contactsTime = new Date();
|
||||
androidContactsCache.clear();
|
||||
|
||||
LinphoneCore lc = LinphoneManager.getLcIfManagerNotDestroyedOrNull();
|
||||
if (lc != null) {
|
||||
|
@ -306,7 +307,6 @@ public class ContactsManager extends ContentObserver {
|
|||
Log.i("[ContactsManager] Step 0 for " + contacts.size() + " contacts: " + time + " elapsed since starting");
|
||||
|
||||
if (hasContactsAccess()) {
|
||||
androidContactsCache.clear();
|
||||
List<String> nativeIds = new ArrayList<String>();
|
||||
Cursor c = getContactsCursor(contentResolver);
|
||||
if (c != null) {
|
||||
|
|
Loading…
Reference in a new issue