diff options
| author | 2015-07-17 18:19:54 +0000 | |
|---|---|---|
| committer | 2015-07-17 18:19:56 +0000 | |
| commit | ad359f2e705280e26198890a95d53e3566126bcc (patch) | |
| tree | cccecca244ccee181c6702bd9cf15330d0bd3e5a | |
| parent | 2a500e32169b53679db83077e57f3c9cd02cfd36 (diff) | |
| parent | 86ac2281437838d1f09a5140543912194151ea1f (diff) | |
Merge "Revert "Don't display Custom for PHONE_TYPE=CUSTOM part 1."" into mnc-dev
| -rw-r--r-- | core/java/android/provider/ContactsContract.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/core/java/android/provider/ContactsContract.java b/core/java/android/provider/ContactsContract.java index d547a604eb8b..8ce1cbf43f7d 100644 --- a/core/java/android/provider/ContactsContract.java +++ b/core/java/android/provider/ContactsContract.java @@ -5957,9 +5957,7 @@ public final class ContactsContract { */ public static final CharSequence getTypeLabel(Resources res, int type, CharSequence label) { - if (type == TYPE_CUSTOM) { - return (label != null ? label : ""); - } else if (type == TYPE_ASSISTANT && !TextUtils.isEmpty(label)) { + if ((type == TYPE_CUSTOM || type == TYPE_ASSISTANT) && !TextUtils.isEmpty(label)) { return label; } else { final int labelRes = getTypeLabelResource(type); |