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()) {
|
||||
String rls = mActivity.getString(R.string.rls_uri);
|
||||
for (FriendList list : LinphoneManager.getLc().getFriendsLists()) {
|
||||
if (rls != null && rls.equals(list.getRlsAddress().asStringUriOnly())) {
|
||||
list.setRlsUri(mActivity.getString(R.string.rls_uri));
|
||||
if (rls != null && (list.getRlsAddress() == null || !list.getRlsAddress().asStringUriOnly().equals(rls))) {
|
||||
list.setRlsUri(rls);
|
||||
}
|
||||
list.setListener(this);
|
||||
list.updateSubscriptions();
|
||||
|
|
Loading…
Reference in a new issue