forked from mirrors/linphone-iphone
[ContactDisplay] fix settings display phone only
This commit is contained in:
parent
8e0270067c
commit
aa6587f92e
1 changed files with 6 additions and 4 deletions
|
|
@ -575,13 +575,15 @@
|
|||
Contact *contact = [FastAddressBook getContactWithAddress:addr];
|
||||
if (contact) {
|
||||
[ContactDisplay setDisplayNameLabel:label forContact:contact];
|
||||
addressLabel.text = [NSString stringWithUTF8String:linphone_address_as_string_uri_only(addr)];
|
||||
addressLabel.hidden = FALSE;
|
||||
} else {
|
||||
label.text = [FastAddressBook displayNameForAddress:addr];
|
||||
if([LinphoneManager.instance lpConfigBoolForKey:@"display_phone_only" inSection:@"app"])
|
||||
addressLabel.hidden = TRUE;
|
||||
else
|
||||
addressLabel.text = [NSString stringWithUTF8String:linphone_address_as_string_uri_only(addr)];
|
||||
}
|
||||
if([LinphoneManager.instance lpConfigStringForKey:@"display_phone_only" inSection:@"app"])
|
||||
addressLabel.text = [NSString stringWithUTF8String:linphone_address_as_string_uri_only(addr)];
|
||||
else
|
||||
addressLabel.hidden = TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue