Fixed crash due to permission for sync account on Huawei

This commit is contained in:
Sylvain Berfini 2018-12-10 17:32:05 +01:00
parent 7c5f3dcb9c
commit 1f8766808f

View file

@ -306,11 +306,11 @@ public class ContactsManager extends ContentObserver implements FriendListListen
try {
accountManager.addAccountExplicitly(newAccount, null, null);
Log.i("[Contacts Manager] Contact account added");
makeContactAccountVisible();
} catch (Exception e) {
Log.e("[Contacts Manager] Couldn't initialize sync account: " + e);
}
}
makeContactAccountVisible();
}
public synchronized LinphoneContact findContactFromAddress(Address address) {