X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2FCallPresentationModel.cpp;h=3da9eedb02d42200c3e50592ad5f9c33bb18a89b;hb=3f4dad3bfe37fc937349af5b5e88658f70086c36;hp=468f73275e5ee5f2318755d628c09b17056cdaa8;hpb=ab1c3e7e1e383a26cc9166f945c8e21581d44aab;p=apps%2Fosp%2FCall.git diff --git a/src/CallPresentationModel.cpp b/src/CallPresentationModel.cpp index 468f732..3da9eed 100644 --- a/src/CallPresentationModel.cpp +++ b/src/CallPresentationModel.cpp @@ -474,6 +474,7 @@ CallPresentationModel::RejectCall(int callHandle, bool sendMsg, const String& co void CallPresentationModel::OnAppForeground(void) { + AppLogDebug("Enter %d %d",__isDialAppControlRunning ,__isMessageAppControlRunning); if (__isDialAppControlRunning == true) { //This comes here, when Dialer AppControl is finished working. @@ -487,10 +488,10 @@ void CallPresentationModel::OnAppForeground(void) __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(UiApp::GetInstance()); - pPhoneApp->Terminate(); + CallApp* pCallApp = static_cast(UiApp::GetInstance()); + pCallApp->Terminate(); } } } @@ -713,6 +714,7 @@ CallPresentationModel::LaunchDialAppControl() if(__isDialAppControlRunning == true) { + AppLogDebug("__isDialAppControlRunning == true"); //Do not allow another app control if already running return; }