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 { try {
accountManager.addAccountExplicitly(newAccount, null, null); accountManager.addAccountExplicitly(newAccount, null, null);
Log.i("[Contacts Manager] Contact account added"); Log.i("[Contacts Manager] Contact account added");
makeContactAccountVisible();
} catch (Exception e) { } catch (Exception e) {
Log.e("[Contacts Manager] Couldn't initialize sync account: " + e); Log.e("[Contacts Manager] Couldn't initialize sync account: " + e);
} }
} }
makeContactAccountVisible();
} }
public synchronized LinphoneContact findContactFromAddress(Address address) { public synchronized LinphoneContact findContactFromAddress(Address address) {