mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-22 13:48:09 +00:00
Fix Null image in Contacts View
This commit is contained in:
parent
4cd3a09dd5
commit
bea19ea23f
2 changed files with 5 additions and 2 deletions
|
|
@ -179,7 +179,11 @@ static void sync_address_book (ABAddressBookRef addressBook, CFDictionaryRef inf
|
|||
id data = [avatarMap objectForKey:[NSNumber numberWithInt: ABRecordGetRecordID(contact)]];
|
||||
if(data == nil) {
|
||||
image = [FastAddressBook getContactImage:contact thumbnail:true];
|
||||
[avatarMap setObject:image forKey:[NSNumber numberWithInt: ABRecordGetRecordID(contact)]];
|
||||
if(image != nil) {
|
||||
[avatarMap setObject:image forKey:[NSNumber numberWithInt: ABRecordGetRecordID(contact)]];
|
||||
} else {
|
||||
[avatarMap setObject:[NSNull null] forKey:[NSNumber numberWithInt: ABRecordGetRecordID(contact)]];
|
||||
}
|
||||
} else if(data != [NSNull null]) {
|
||||
image = data;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -48,7 +48,6 @@ typedef enum _HistoryView {
|
|||
[allButton release];
|
||||
[missedButton release];
|
||||
[editButton release];
|
||||
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue