Fixed to be launched setting app when longpressing the quicksetting button 39/63039/2
authorjin0.kim <jin0.kim@samsung.com>
Tue, 22 Mar 2016 01:21:38 +0000 (09:51 +0830)
committerjin0.kim <jin0.kim@samsung.com>
Wed, 23 Mar 2016 01:44:51 +0000 (10:14 +0830)
Change-Id: Iae8d942e1706da6a356d9de16bf606fd26e1da98

daemon/settings/modules/bluetooth.c
daemon/settings/modules/gps.c

index eeefa95..e32764b 100755 (executable)
@@ -35,7 +35,7 @@
 #define BUTTON_ICON_NORMAL "quick_icon_bluetooth.png"
 #define BUTTON_ICON_HIGHLIGHT NULL
 #define BUTTON_ICON_DIM NULL
-#define PACKAGE_SETTING_MENU "ug-bluetooth-efl-single"
+#define PACKAGE_SETTING_MENU "ug-bluetooth-efl"
 
 static void _mouse_clicked_cb(void *data, Evas_Object *obj, const char *emission, const char *source);
 
index 4fd33f6..16e7c01 100755 (executable)
@@ -30,6 +30,7 @@
 #include "settings.h"
 #include "setting_utils.h"
 #include "setting_module_api.h"
+#include "settings_icon_common.h"
 
 
 #define BUTTON_LABEL _("IDS_QP_BUTTON2_LOCATION_ABB")
@@ -65,28 +66,7 @@ static const char *_icon_get(qp_setting_icon_image_type type)
 static void _long_press_cb(void *data)
 {
 #ifdef PACKAGE_SETTING_MENU
-       // Because operation is not DEFAULT, this function can not be called. Too many changes to add operation param.
-       // quickpanel_setting_icon_handler_longpress(PACKAGE_SETTING_MENU, NULL);
-
-       app_control_h service;
-       int ret = 0;
-
-       ret = app_control_create(&service);
-       if (ret != 0) {
-               ERR("Failed to create app control");
-               return;
-       }
-
-       app_control_set_app_id(service, PACKAGE_SETTING_MENU);
-       app_control_set_operation(service, OPERATION_SETTING_MENU);
-
-       ret = app_control_send_launch_request(service, NULL, NULL);
-       if (ret != 0) {
-               ERR("Failed to launch[%d]", ret);
-       }
-
-       app_control_destroy(service);
-
+       quickpanel_setting_icon_handler_longpress(PACKAGE_SETTING_MENU, NULL);
 #endif
 }