Fix invalid view state after a transfert of outgoing call

This commit is contained in:
Yann Diorcet 2012-06-08 10:57:00 +02:00
parent 329302793a
commit 4507faf34f

View file

@ -320,8 +320,8 @@
-(void) displayInCall: (LinphoneCall*) call FromUI:(UIViewController*) viewCtrl forUser:(NSString*) username withDisplayName:(NSString*) displayName {
[mMainScreenWithVideoPreview showPreview:NO];
if (self.presentedViewController != (UIViewController*)mIncallViewController && (call == 0x0 ||
linphone_call_get_dir(call)==LinphoneCallIncoming)){
if (self.presentedViewController != (UIViewController*)mIncallViewController /*&& (call == 0x0 ||
linphone_call_get_dir(call)==LinphoneCallIncoming)*/){
[self presentModalViewController:(UIViewController*)mIncallViewController animated:true];
}