From 7da6a4c1d179a8156c8e0671bf692b5a7139c2f0 Mon Sep 17 00:00:00 2001 From: hyunuktak Date: Fri, 24 Jun 2016 13:41:43 +0900 Subject: [PATCH] App control sets app id when add found ap noti Change-Id: Ic84c6199a245b5daa91f059e6102ffd16e0d8dfd Signed-off-by: hyunuktak --- packaging/net.netpopup.spec | 2 +- src/net-popup.c | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/packaging/net.netpopup.spec b/packaging/net.netpopup.spec index bde968b..74559bd 100755 --- a/packaging/net.netpopup.spec +++ b/packaging/net.netpopup.spec @@ -1,6 +1,6 @@ Name: net.netpopup Summary: Network Notification Popup applicationa -Version: 0.2.83 +Version: 0.2.84 Release: 1 Group: App/Network License: Flora-1.1 diff --git a/src/net-popup.c b/src/net-popup.c index fbb25be..9c63585 100755 --- a/src/net-popup.c +++ b/src/net-popup.c @@ -38,6 +38,8 @@ #include "net-popup.h" #include "net-popup-strings.h" +#define NET_WIFIQS_APPID "net.wifi-qs" + #define LOCALEDIR "/usr/share/locale" #define NETPOPUP_EDJ tzplatform_mkpath(TZ_SYS_RO_UG, "/res/edje/net-popup/netpopup-custom.edj") #define QP_PRELOAD_NOTI_ICON_PATH tzplatform_mkpath(TZ_SYS_RO_APP, "/org.tizen.quickpanel/shared/res/noti_icons/Wi-Fi") @@ -877,7 +879,12 @@ static void __net_popup_add_found_ap_noti(void) } ret = app_control_create(&service_handle); - log_print(NET_POPUP, "service create ret[%d]", ret); + log_print(NET_POPUP, "Service create ret[%d]", ret); + if(ret != APP_CONTROL_ERROR_NONE) + goto error; + + ret = app_control_set_app_id(service_handle, NET_WIFIQS_APPID); + log_print(NET_POPUP, "Service set app id ret = %d", ret); if(ret != APP_CONTROL_ERROR_NONE) goto error; -- 2.7.4