1.Changed appcontrol parameters of contacts 2.GUI changes 3.Changes to alert tone...
[apps/osp/Call.git] / src / CallEndCallForm.cpp
index 1da349e..785e929 100644 (file)
@@ -572,6 +572,7 @@ EndCallForm::OnTimerExpired(Tizen::Base::Runtime::Timer& timer)
 void
 EndCallForm::OnAppControlCompleteResponseReceived(const AppId& appId, const String& operationId, AppCtrlResult appControlResult, const IMap* pExtraData)
 {
+       AppLogDebug("Enter");
        if (__isMsgAppControlLaunched == true)
        {
                //Message AppControl request completed.
@@ -603,6 +604,14 @@ EndCallForm::OnForeground(void)
                pPhoneApp->Terminate();
        }
        __isContactAppControlLaunched = false;
+
+       if (__isMsgAppControlLaunched == true)
+       {
+               //Message AppControl request completed.
+               CallApp* pPhoneApp = (static_cast<CallApp*>(UiApp::GetInstance()));
+               pPhoneApp->Terminate();
+               __isMsgAppControlLaunched = false;
+       }
        AppLogDebug("Exit");
 }