Fixed crash in contacts manager if list without rls uri
This commit is contained in:
parent
c9e15021ab
commit
bc884cfb20
1 changed files with 2 additions and 2 deletions
|
@ -505,8 +505,8 @@ public class ContactsManager extends ContentObserver implements FriendListListen
|
||||||
if (LinphonePreferences.instance() != null && LinphonePreferences.instance().isFriendlistsubscriptionEnabled()) {
|
if (LinphonePreferences.instance() != null && LinphonePreferences.instance().isFriendlistsubscriptionEnabled()) {
|
||||||
String rls = mActivity.getString(R.string.rls_uri);
|
String rls = mActivity.getString(R.string.rls_uri);
|
||||||
for (FriendList list : LinphoneManager.getLc().getFriendsLists()) {
|
for (FriendList list : LinphoneManager.getLc().getFriendsLists()) {
|
||||||
if (rls != null && rls.equals(list.getRlsAddress().asStringUriOnly())) {
|
if (rls != null && (list.getRlsAddress() == null || !list.getRlsAddress().asStringUriOnly().equals(rls))) {
|
||||||
list.setRlsUri(mActivity.getString(R.string.rls_uri));
|
list.setRlsUri(rls);
|
||||||
}
|
}
|
||||||
list.setListener(this);
|
list.setListener(this);
|
||||||
list.updateSubscriptions();
|
list.updateSubscriptions();
|
||||||
|
|
Loading…
Reference in a new issue