From: Hwankyu Jhun Date: Tue, 19 May 2020 09:56:56 +0000 (+0900) Subject: [ITC][watchface-complication][Non-ACR][Fix TC issues] X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F82%2F233982%2F1;p=test%2Ftct%2Fnative%2Fapi.git [ITC][watchface-complication][Non-ACR][Fix TC issues] Change-Id: I86349f0ce3bc498bc31d76ca83ab625ed13e87e8 Signed-off-by: Hwankyu Jhun (cherry picked from commit 7f198ac1b38b5a69a0939558867925b26ece8fa3) --- diff --git a/src/itc/watchface-complication/ITs-watchface-complication-editable.c b/src/itc/watchface-complication/ITs-watchface-complication-editable.c index ebcc85a88..d04834d7e 100755 --- a/src/itc/watchface-complication/ITs-watchface-complication-editable.c +++ b/src/itc/watchface-complication/ITs-watchface-complication-editable.c @@ -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));