void CallPresentationModel::OnAppForeground(void)
{
+ AppLogDebug("Enter %d %d",__isDialAppControlRunning ,__isMessageAppControlRunning);
if (__isDialAppControlRunning == true)
{
//This comes here, when Dialer AppControl is finished working.
__pAppControlMgr->AppControlRequestCompleted();
//Check if this was the last call, then terminate application.
//And if any calls are active, then those cases are already handled from Other places.
- if( GetCurrentCallCount() == 0)
+ if( GetCurrentCallCount() == 0 && IsIncomingorDialingCallPresent() == false)
{
- CallApp* pPhoneApp = static_cast<CallApp*>(UiApp::GetInstance());
- pPhoneApp->Terminate();
+ CallApp* pCallApp = static_cast<CallApp*>(UiApp::GetInstance());
+ pCallApp->Terminate();
}
}
}
if(__isDialAppControlRunning == true)
{
+ AppLogDebug("__isDialAppControlRunning == true");
//Do not allow another app control if already running
return;
}