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

Commit 7150e1a9 authored by Tingting Wang's avatar Tingting Wang Committed by Android Git Automerger
Browse files

am b8fb1343: am 79f44602: am eeb5b9d0: am 0f4595af: am 4ccf69e1: Merge "Don\'t...

am b8fb1343: am 79f44602: am eeb5b9d0: am 0f4595af: am 4ccf69e1: Merge "Don\'t display Custom for PHONE_TYPE=CUSTOM part 1." into mnc-dev

* commit 'b8fb1343':
  Don't display Custom for PHONE_TYPE=CUSTOM part 1.
parents 5a1bfd00 b8fb1343
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -5963,7 +5963,9 @@ public final class ContactsContract {
             */
            public static final CharSequence getTypeLabel(Resources res, int type,
                    CharSequence label) {
                if ((type == TYPE_CUSTOM || type == TYPE_ASSISTANT) && !TextUtils.isEmpty(label)) {
                if (type == TYPE_CUSTOM) {
                    return (label != null ? label : "");
                } else if (type == TYPE_ASSISTANT && !TextUtils.isEmpty(label)) {
                    return label;
                } else {
                    final int labelRes = getTypeLabelResource(type);