Skip to content
Snippets Groups Projects
Commit 594231e2 authored by Rayan Osseiran's avatar Rayan Osseiran Committed by Adrien Béraud
Browse files

sip: fixed crashing when typing contact

Fixed an issue where a crash occurred when you try to type a contact name on a sip account when you have a sip and ring account

Change-Id: Ic2bed9ccb40bfb04c62c2afc0de553217da28b20
parent 52bca4eb
No related branches found
No related tags found
No related merge requests found
...@@ -134,7 +134,7 @@ public abstract class ContactService { ...@@ -134,7 +134,7 @@ public abstract class ContactService {
CallContact contact = account.getContactFromCache(uri); CallContact contact = account.getContactFromCache(uri);
// TODO load system contact info into SIP contact // TODO load system contact info into SIP contact
if (account.isSip()) { if (account.isSip()) {
loadContactData(contact).subscribe(); loadContactData(contact).subscribe(() -> {}, e -> Log.e(TAG, "Can't load contact data"));
} }
return contact; return contact;
} }
......
...@@ -154,7 +154,7 @@ public class SmartListPresenter extends RootPresenter<SmartListView> { ...@@ -154,7 +154,7 @@ public class SmartListPresenter extends RootPresenter<SmartListView> {
mCallContact = mContactService.findContact(currentAccount, uri); mCallContact = mContactService.findContact(currentAccount, uri);
mCompositeDisposable.add(mContactService.loadContactData(mCallContact) mCompositeDisposable.add(mContactService.loadContactData(mCallContact)
.observeOn(mUiScheduler) .observeOn(mUiScheduler)
.subscribe(() -> view.displayContact(mCallContact))); .subscribe(() -> view.displayContact(mCallContact), rt -> view.displayContact(mCallContact)));
} else { } else {
if (uri.isRingId()) { if (uri.isRingId()) {
mCallContact = currentAccount.getContactFromCache(uri); mCallContact = currentAccount.getContactFromCache(uri);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment