[ITC][watchface-complication][Non-ACR][Fix TC issue] 14/233814/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 19 May 2020 09:28:38 +0000 (18:28 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Tue, 19 May 2020 09:28:38 +0000 (18:28 +0900)
Change-Id: I87d67114aad1f2a7226aadc608528247209dafb2
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/itc/watchface-complication/ITs-watchface-complication-provider.c

index 247789a869779e6ce7c82eecf7fa58fa354856af..a395d195931479436188cce47963f33a414e47c9 100755 (executable)
@@ -127,7 +127,16 @@ static void RunApp(char *pszTargetApp, char *pszKey, char *pszValue, int nCompId
                return;
        }
 
-       nRet = app_control_add_extra_data(hAppControl, "SENDER_ID", "org.tizen.watchface-native-itc");
+       char *id = NULL;
+       nRet = app_get_id(&id);
+       if(nRet != APP_ERROR_NONE) {
+               FPRINTF("[Line : %d][%s] app_control_add_extra_data returned %d error\\n", __LINE__, API_NAMESPACE, nRet);
+               app_control_destroy(hAppControl);
+               return;
+       }
+
+       nRet = app_control_add_extra_data(hAppControl, "SENDER_ID", id);
+       free(id);
        if(nRet != APP_CONTROL_ERROR_NONE)
        {
                FPRINTF("[Line : %d][%s] app_control_add_extra_data returned %s error\\n", __LINE__, API_NAMESPACE, AppControlGetError(nRet));