From d3c2a27a05724d0b5f05811488841dff96efe96c Mon Sep 17 00:00:00 2001 From: hyunho Date: Mon, 16 Jul 2018 17:29:35 +0900 Subject: [PATCH] Fix setup appid bug Change-Id: Iab080706e24cc172d7f2d61a1994d0e97a6426fb Signed-off-by: hyunho --- watch-control/src/control.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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; } -- 2.34.1