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

Commit 3df785b0 authored by Tingting Wang's avatar Tingting Wang
Browse files

Don't display Custom for PHONE_TYPE=CUSTOM part 2.

Dialer sometimes creates custom PHONE_TYPE values without
specifying the custom string. In this case, we shouldn't
display "Custom". We should display nothing.

BUG 21900262

Change-Id: Ie65a40fea3c857b7a65ee82a22c8cd1465225781
parent 8cad4b59
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1477,8 +1477,10 @@ public class QuickContactActivity extends ContactsActivity {
                if (phone.hasKindTypeColumn(kind)) {
                    text = Phone.getTypeLabel(res, phone.getKindTypeColumn(kind),
                            phone.getLabel()).toString();
                    if (!TextUtils.isEmpty(text)) {
                        primaryContentDescription.append(text).append(" ");
                    }
                }
                primaryContentDescription.append(header);
                icon = res.getDrawable(R.drawable.ic_phone_24dp);
                iconResourceId = R.drawable.ic_phone_24dp;