Update VCardComposer getOwnerPhoneNumberVcard() to support empty vcard for 0.vcf
Add check in getOwnerPhoneNumberVcard(). If the incoming phonenumber is empty, do not add "TEL" to vcard data. Manual merge from eclair branch
This commit is contained in:
@@ -2378,8 +2378,10 @@ public class VCardComposer {
|
||||
appendVCardLine(builder, Constants.PROPERTY_FN, phoneName, needCharset, false);
|
||||
appendVCardLine(builder, Constants.PROPERTY_N, phoneName, needCharset, false);
|
||||
|
||||
String label = Integer.toString(phonetype);
|
||||
appendVCardTelephoneLine(builder, phonetype, label, phoneNumber, false);
|
||||
if (!TextUtils.isEmpty(phoneNumber)) {
|
||||
String label = Integer.toString(phonetype);
|
||||
appendVCardTelephoneLine(builder, phonetype, label, phoneNumber, false);
|
||||
}
|
||||
|
||||
appendVCardLine(builder, Constants.PROPERTY_END, VCARD_DATA_VCARD);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user