summaryrefslogtreecommitdiff
path: root/wearable/app/src/nsa-view-tap-n-pay.c
diff options
context:
space:
mode:
authorjh8801.jung <jh8801.jung@samsung.com>2017-10-12 11:46:48 +0900
committerJihoon Jung <jh8801.jung@samsung.com>2017-10-12 04:00:50 +0000
commitaac25b1caf84312cc40f8dde9d3c6e0bd5f25524 (patch)
tree73f72981cee2980dd31f0ada4e881c833c2d04a0 /wearable/app/src/nsa-view-tap-n-pay.c
parentabb0bbbedb7988e064685e948fa99c192ceb4d77 (diff)
downloadug-nfc-efl-aac25b1caf84312cc40f8dde9d3c6e0bd5f25524.tar.gz
ug-nfc-efl-aac25b1caf84312cc40f8dde9d3c6e0bd5f25524.tar.bz2
ug-nfc-efl-aac25b1caf84312cc40f8dde9d3c6e0bd5f25524.zip
Signed-off-by: jh8801.jung <jh8801.jung@samsung.com> Change-Id: I53690e131c3fbbf0dccdce9db3834a71de40badc
Diffstat (limited to 'wearable/app/src/nsa-view-tap-n-pay.c')
-rwxr-xr-xwearable/app/src/nsa-view-tap-n-pay.c16
1 files changed, 6 insertions, 10 deletions
diff --git a/wearable/app/src/nsa-view-tap-n-pay.c b/wearable/app/src/nsa-view-tap-n-pay.c
index d144887..cb1050c 100755
--- a/wearable/app/src/nsa-view-tap-n-pay.c
+++ b/wearable/app/src/nsa-view-tap-n-pay.c
@@ -188,16 +188,14 @@ static char *__get_launch_app_id(char *pkgid)
NSA_DEBUG("__get_launch_app_id [%s]", pkgid);
ret = pkgmgrinfo_pkginfo_get_pkginfo(pkgid, &pkginfo);
- if (ret != 0) {
+ if (ret != 0)
return strdup(pkgid);
- }
ret = pkgmgrinfo_pkginfo_get_mainappid(pkginfo, &main_appid);
- if (ret == 0) {
+ if (ret == 0)
return strdup(main_appid);
- } else {
+ else
return strdup(pkgid);
- }
}
static void __launch_application(char *appid)
@@ -225,9 +223,8 @@ static void __launch_application(char *appid)
}
ret = app_control_send_launch_request(service, NULL, NULL);
- if(ret != APP_CONTROL_ERROR_NONE) {
+ if (ret != APP_CONTROL_ERROR_NONE)
NSA_DEBUG_ERR("app_control_send_launch_request failed[%d]", ret);
- }
END:
app_control_destroy(service);
@@ -321,11 +318,10 @@ static void __gl_list_clicked_cb(void *data, Evas_Object *obj,
static char *__gl_text_get_title(void *data, Evas_Object *obj,
const char *part)
{
- if (!strcmp(part, "elm.text")) {
+ if (!strcmp(part, "elm.text"))
return strdup(IDS_TAP_AND_PAY);
- } else {
+ else
return NULL;
- }
}
static char *__gl_text_get(void *data, Evas_Object *obj,