* commit '0f4595afd0d9b529fa2464085f526b1d9edd73aa': Don't display Custom for PHONE_TYPE=CUSTOM part 1.
This commit is contained in:
@@ -5957,7 +5957,9 @@ public final class ContactsContract {
|
|||||||
*/
|
*/
|
||||||
public static final CharSequence getTypeLabel(Resources res, int type,
|
public static final CharSequence getTypeLabel(Resources res, int type,
|
||||||
CharSequence label) {
|
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;
|
return label;
|
||||||
} else {
|
} else {
|
||||||
final int labelRes = getTypeLabelResource(type);
|
final int labelRes = getTypeLabelResource(type);
|
||||||
|
|||||||
Reference in New Issue
Block a user