Add a raise mode property 60/14660/1 accepted/tizen/mobile tizen accepted/tizen/mobile/20140113.182115 submit/tizen/20140112.150650
authorSunwook Bae <sunwook45.bae@samsung.com>
Fri, 6 Dec 2013 05:52:59 +0000 (14:52 +0900)
committerKeebong <keebong.bahn@samsung.com>
Thu, 9 Jan 2014 08:03:29 +0000 (17:03 +0900)
Change-Id: I1e1c1d884372aa0fc4b154c552b08545503484a1
Signed-off-by: Sunwook Bae <sunwook45.bae@samsung.com>
src/implicit-app-control/ImplicitAppControlEntry.cpp
src/platform-app-control/PlatformAppControlEntry.cpp

index 0f50836..d9590bb 100644 (file)
@@ -179,9 +179,14 @@ _AppControlPlugin::OnAppControlResult(void* b, int requestCode, service_result_e
 
        const AppId& provider = _AppArg::GetCalleeAppId(pBundle);
        const String& operation = pInfo->operationId;
-       const bool isSubMode = _AppArg::IsSubMode(pBundle);
+       int property = 0;
 
-       _AppControlManager::GetInstance()->FinishAppControl(requestCode, res, provider, operation, pResult, (isSubMode) ? _APPCONTROL_PROPERTY_SUBMODE : 0);
+       if (_AppArg::IsRaiseMode(pBundle))
+       {
+               property |= _APPCONTROL_PROPERTY_RAISE_MODE;
+       }
+
+       _AppControlManager::GetInstance()->FinishAppControl(requestCode, res, provider, operation, pResult, property);
        pThis->__requestManager.RemoveItem(requestCode);
 
        SysLog(NID_APP, "Request %d is removed from the list successfully.", requestCode);
index e1b0e9c..f8a866d 100644 (file)
@@ -163,8 +163,15 @@ _AppControlPlugin::OnAppControlResult(void* b, int requestCode, service_result_e
 
        pThis->__requestManager.RemoveItem(requestCode);
 
-       const bool isSubMode = _AppArg::IsSubMode(pBundle);
-       _AppControlManager::GetInstance()->FinishAppControl(requestCode, res, L"", L"", pResult, (isSubMode) ? _APPCONTROL_PROPERTY_SUBMODE : 0);
+       int property = 0;
+       const bool isRaiseMode = _AppArg::IsRaiseMode(pBundle);
+
+       if (isRaiseMode)
+       {
+               property |= _APPCONTROL_PROPERTY_RAISE_MODE;
+       }
+
+       _AppControlManager::GetInstance()->FinishAppControl(requestCode, res, L"", L"", pResult, property);
 
        SysLog(NID_APP, "Request %d is removed from the list successfully.", requestCode);
 }