From: hyunho Date: Mon, 16 Jul 2018 08:29:35 +0000 (+0900) Subject: Fix setup appid bug X-Git-Tag: submit/tizen/20180717.014634~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d3c2a27a05724d0b5f05811488841dff96efe96c;p=platform%2Fcore%2Fappfw%2Fwidget-viewer.git Fix setup appid bug Change-Id: Iab080706e24cc172d7f2d61a1994d0e97a6426fb Signed-off-by: hyunho --- diff --git a/watch-control/src/control.c b/watch-control/src/control.c index 8bcb717c..479e0b48 100755 --- a/watch-control/src/control.c +++ b/watch-control/src/control.c @@ -52,7 +52,6 @@ #endif #define KEY_SCREEN_SHAPE_CIRCLE "http://tizen.org/feature/screen.shape.circle" -#define METADATA_SETUP_APPID "http://tizen.org/metadata/watch/setup-appid" #define DEVICED_PATH_DISPLAY "/Org/Tizen/System/DeviceD/Display" #define DEVICED_INTERFACE_DISPLAY "org.tizen.system.deviced.display" @@ -962,12 +961,14 @@ API int watch_manager_get_setup_appid(const char *app_id, char **setup_appid) char *tmp_appid = NULL; ret = pkgmgrinfo_appinfo_get_appinfo(app_id, &handle); - if (ret != PMINFO_R_OK) + if (ret != PMINFO_R_OK) { + LOGE("fail to get app info"); return -1; + } - ret = pkgmgrinfo_appinfo_get_metadata_value(handle, - METADATA_SETUP_APPID, &tmp_appid); + ret = pkgmgrinfo_appinfo_get_setup_appid(handle, &tmp_appid); if (ret != PMINFO_R_OK) { + LOGE("fail to get setup appid"); pkgmgrinfo_appinfo_destroy_appinfo(handle); return -1; }