Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6b88e548 authored by Yorke Lee's avatar Yorke Lee
Browse files

Fix layout inconsistencies due to add to contacts shortcut

Use the contact uri (which is stored in the call log and does not
depend on performing an asynchronous lookup) instead of the lookup
key to determine whether or not to show the add to contacts
shortcut.

Bug: 17316578
Change-Id: Ib7ba14eaa6eeeb42c0aea784ee663f673f67040b
parent dc326a9e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -1038,8 +1038,7 @@ public class CallLogAdapter extends GroupingListAdapter
        // Do not show badge in call log.
        if (!mIsCallLog) {
            final ViewStub stub = (ViewStub) view.findViewById(R.id.link_stub);

            if (TextUtils.isEmpty(info.lookupKey)) {
            if (UriUtils.isEncodedContactUri(info.lookupUri)) {
                if (stub != null) {
                    final View inflated = stub.inflate();
                    inflated.setVisibility(View.VISIBLE);