Commit 46669bfe authored by Sylvain Berfini's avatar Sylvain Berfini

Disabled custom incoming call view + fix for normal incoming call view

parent 11051c5c
......@@ -22,7 +22,6 @@ namespace Linphone.Agents
AgentHost.OnAgentStarted();
//Force the callController to be initialized now to avoid creating it at the last moment (workaroud outgoing call crash after app started)
Globals.Instance.CallController.IncomingCallViewDismissed = null;
Globals.Instance.CallController.CustomIncomingCallView = true;
}
/// <summary>
......
......@@ -642,10 +642,12 @@ namespace Linphone.Model
Logger.Msg("[LinphoneManager] Incoming received");
BaseModel.UIDispatcher.BeginInvoke(() =>
{
BaseModel.CurrentPage.NavigationService.Navigate(new Uri("/Views/IncomingCall.xaml?sip=" + call.GetRemoteAddress().AsStringUriOnly(), UriKind.RelativeOrAbsolute));
//Remove the current page from the back stack to avoid duplicating him after
BaseModel.CurrentPage.NavigationService.RemoveBackEntry();
if (Globals.Instance.CallController.CustomIncomingCallView)
{
BaseModel.CurrentPage.NavigationService.Navigate(new Uri("/Views/IncomingCall.xaml?sip=" + call.GetRemoteAddress().AsStringUriOnly(), UriKind.RelativeOrAbsolute));
//Remove the current page from the back stack to avoid duplicating him after
BaseModel.CurrentPage.NavigationService.RemoveBackEntry();
}
LookupForContact(call);
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment