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

Commit 4a261c84 authored by Dmitri Plotnikov's avatar Dmitri Plotnikov
Browse files

Fixing NPE in phone disambig dialog.

Bug: 2569645
Change-Id: I520cd8c602ca5de3e63d372a6826a34fc97c0dbe
parent c4e4995b
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -156,11 +156,15 @@ public class PhoneDisambigDialog implements DialogInterface.OnClickListener,
            // ContactSource associated with that phone number
            TextView typeView = (TextView)view.findViewById(android.R.id.text1);
            DataKind kind = source.getKindForMimetype(Phone.CONTENT_ITEM_TYPE);
            if (kind != null) {
                ContentValues values = new ContentValues();
                values.put(Phone.TYPE, item.type);
                values.put(Phone.LABEL, item.label);
                StringInflater header = sendSms ? kind.actionAltHeader : kind.actionHeader;
                typeView.setText(header.inflateUsing(getContext(), values));
            } else {
                typeView.setText(R.string.call_other);
            }
            return view;
        }
    }