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

Commit 593e5a7f authored by Brian Attwell's avatar Brian Attwell
Browse files

Show SIP address on tablets

Bug: 18091297
Change-Id: Iad9e39f5c0cd12cf3c5f6620d98e79e770894d47
parent 98ab7ded
Loading
Loading
Loading
Loading
+18 −18
Original line number Diff line number Diff line
@@ -1469,14 +1469,15 @@ public class QuickContactActivity extends ContactsActivity {
                iconResourceId = R.drawable.ic_place_24dp;
            }
        } else if (dataItem instanceof SipAddressDataItem) {
            if (PhoneCapabilityTester.isSipPhone(context)) {
            final SipAddressDataItem sip = (SipAddressDataItem) dataItem;
            final String address = sip.getSipAddress();
            if (!TextUtils.isEmpty(address)) {
                primaryContentDescription.append(res.getString(R.string.call_other)).append(
                        " ");
                if (PhoneCapabilityTester.isSipPhone(context)) {
                    final Uri callUri = Uri.fromParts(PhoneAccount.SCHEME_SIP, address, null);
                    intent = CallUtil.getCallIntent(callUri);
                }
                header = address;
                entryContextMenuInfo = new EntryContextMenuInfo(header,
                        res.getString(R.string.phoneLabelsGroup), dataItem.getMimeType(),
@@ -1490,7 +1491,6 @@ public class QuickContactActivity extends ContactsActivity {
                icon = res.getDrawable(R.drawable.ic_dialer_sip_black_24dp);
                iconResourceId = R.drawable.ic_dialer_sip_black_24dp;
            }
            }
        } else if (dataItem instanceof StructuredNameDataItem) {
            final String givenName = ((StructuredNameDataItem) dataItem).getGivenName();
            if (!TextUtils.isEmpty(givenName)) {