forked from mirrors/linphone-iphone
Fix call logs issue
This commit is contained in:
parent
b89cbabf52
commit
cb9e977bf3
2 changed files with 6 additions and 5 deletions
|
|
@ -115,7 +115,6 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
selector:@selector(update:)
|
||||
name:kLinphoneAddressBookUpdate
|
||||
object:nil];
|
||||
[self update];
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated {
|
||||
|
|
@ -155,11 +154,11 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
|
||||
- (void)update {
|
||||
// Don't update if callLog is null
|
||||
if(callLog==NULL) {
|
||||
if(callLog == NULL) {
|
||||
return;
|
||||
}
|
||||
|
||||
LinphoneAddress* addr;
|
||||
LinphoneAddress* addr = NULL;
|
||||
if (callLog->dir == LinphoneCallIncoming) {
|
||||
addr = callLog->from;
|
||||
} else {
|
||||
|
|
|
|||
|
|
@ -181,8 +181,10 @@ static UICompositeViewDescription *compositeDescription = nil;
|
|||
- (IBAction)onDeleteClick:(id) event {
|
||||
linphone_core_clear_call_logs([LinphoneManager getLc]);
|
||||
[tableController loadData];
|
||||
[editButton toggle];
|
||||
[self onEditClick:nil];
|
||||
if([editButton isSelected]) {
|
||||
[editButton toggle];
|
||||
[self onEditClick:nil];
|
||||
}
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue