Fixed crash due to permission for sync account on Huawei
This commit is contained in:
parent
7c5f3dcb9c
commit
1f8766808f
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue