Skip to content
Snippets Groups Projects
Commit 2ebd2d84 authored by Adrien Béraud's avatar Adrien Béraud Committed by Sébastien Blin
Browse files

smartlist: fix crash when entering raw ringid

Change-Id: Icad0d99257def8baf34bc2ee442b1a936ad2bd7e
parent 7e45b0ef
Branches
Tags
No related merge requests found
...@@ -158,9 +158,9 @@ public class SmartListPresenter extends RootPresenter<SmartListView> { ...@@ -158,9 +158,9 @@ public class SmartListPresenter extends RootPresenter<SmartListView> {
} else { } else {
if (uri.isRingId()) { if (uri.isRingId()) {
mCallContact = currentAccount.getContactFromCache(uri); mCallContact = currentAccount.getContactFromCache(uri);
mCompositeDisposable.add(mContactService.loadContactData(mCallContact) mCompositeDisposable.add(mContactService.getLoadedContact(currentAccount.getAccountID(), mCallContact)
.observeOn(mUiScheduler) .observeOn(mUiScheduler)
.subscribe(() -> view.displayContact(mCallContact))); .subscribe(view::displayContact, e -> Log.e(TAG, "Can't load contact")));
} else { } else {
view.hideSearchRow(); view.hideSearchRow();
view.setLoading(true); view.setLoading(true);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment