diff --git a/Classes/PhoneViewController.m b/Classes/PhoneViewController.m index b1f1214a8..cb803e988 100644 --- a/Classes/PhoneViewController.m +++ b/Classes/PhoneViewController.m @@ -268,7 +268,14 @@ otherButtonTitles:nil]; mIncomingCallActionSheet.actionSheetStyle = UIActionSheetStyleDefault; - [mIncomingCallActionSheet showInView:self.parentViewController.view]; + if ([LinphoneManager runningOnIpad]) { + if (self.modalViewController != nil) + [mIncomingCallActionSheet showInView:[self.modalViewController view]]; + else + [mIncomingCallActionSheet showInView:self.parentViewController.view]; + } else { + [mIncomingCallActionSheet showInView:self.parentViewController.view]; + } [mIncomingCallActionSheet release]; }