During a call user can now establish a new call by pressing contacts

Fixes issue: #0050: When a call is engaged, unable to select the phone number from
Contacts.
This commit is contained in:
Pierre-Eric Pelloux-Prayer 2011-12-01 09:48:57 +01:00
parent d812eb0428
commit be55f2f6bd
2 changed files with 12 additions and 4 deletions

View file

@ -22,6 +22,7 @@
#import "linphonecore.h"
#include "LinphoneManager.h"
#include "private.h"
#import "ContactPickerDelegate.h"Òß
@implementation IncallViewController
@ -390,7 +391,7 @@ int callCount(LinphoneCore* lc) {
} else if (sender == contacts) {
// start people picker
myPeoplePickerController = [[[ABPeoplePickerNavigationController alloc] init] autorelease];
[myPeoplePickerController setPeoplePickerDelegate:self];
[myPeoplePickerController setPeoplePickerDelegate:[[ContactPickerDelegate alloc] init] /*self*/];
[self presentModalViewController: myPeoplePickerController animated:true];
} else if (sender == close) {

View file

@ -153,9 +153,16 @@
} //else keep previous
[mDisplayName setText:displayName];
[callLarge setHidden:FALSE];
[callShort setHidden:TRUE];
[backToCallView setHidden:TRUE];
// disable call button if != Paused
if (linphone_core_get_calls_nb([LinphoneManager getLc]) == 0) {
[callLarge setHidden:FALSE];
[callShort setHidden:TRUE];
[backToCallView setHidden:TRUE];
} else {
[callLarge setHidden:TRUE];
[callShort setHidden:FALSE];
[backToCallView setHidden:FALSE];
}
if ([[NSUserDefaults standardUserDefaults] boolForKey:@"firstlogindone_preference" ] == true) {