Fix contact address label in contact details view for when it is unknown.

This commit is contained in:
Guillaume BIENKOWSKI 2014-07-03 15:47:10 +02:00
parent 03b8d2b357
commit ee3b842abc

View file

@ -533,7 +533,8 @@ static const ContactSections_e contactSections[ContactSections_MAX] = {ContactSe
Entry *entry = [sectionDict objectAtIndex:[indexPath row]];
NSString *value = @"";
NSString *label = @"";
// default label is our app name
NSString *label = [ContactDetailsTableViewController localizeLabel:[labelArray objectAtIndex:0]];
if(contactSections[[indexPath section]] == ContactSections_Number) {
ABMultiValueRef lMap = ABRecordCopyValue(contact, kABPersonPhoneProperty);