[ITC][watchface-complication][Non-ACR][Fix TC issues] 82/233982/1
authorHwankyu Jhun <h.jhun@samsung.com>
Tue, 19 May 2020 09:56:56 +0000 (18:56 +0900)
committerJihun Park <jihun87.park@samsung.com>
Thu, 21 May 2020 03:00:43 +0000 (03:00 +0000)
Change-Id: I86349f0ce3bc498bc31d76ca83ab625ed13e87e8
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
(cherry picked from commit 7f198ac1b38b5a69a0939558867925b26ece8fa3)

src/itc/watchface-complication/ITs-watchface-complication-editable.c

index ebcc85a888f75ece24a5b5a1bbd90b442cce27e4..d04834d7ea2fffaff71f32edd4c63c0457c4c572 100755 (executable)
@@ -98,7 +98,17 @@ static void RunEditorApp()
                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_get_id 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));