/** * Return a {@link CharSequence} that best describes the given type, possibly substituting * the given label value for TYPE_CUSTOM. */ public static CharSequence getTypeLabel(Resources res, int type, CharSequence label) { if (CompatUtils.isLollipopCompatible()) { return Event.getTypeLabel(res, type, label); } else { return getTypeLabelInternal(res, type, label); } }