static void _button_cb(void *data, Evas_Object *obj, void *event_info)
{
- _D("volume setting is clicked");
int ret = -1;
- app_control_h svc;
+ app_control_h app_setting;
+ app_control_h app_quick;
if (evas_object_visible_get(view_info.win)) {
volume_timer_del(TYPE_TIMER_POPUP);
- ret = app_control_create(&svc);
+ /* Hide quickpanel */
+ ret = app_control_create(&app_quick);
_app_control_error_check(ret);
- ret = app_control_set_app_id(svc, "org.tizen.setting.volume");
+ ret = app_control_set_app_id(app_quick, "org.tizen.quickpanel");
_app_control_error_check(ret);
- ret = app_control_send_launch_request(svc, NULL, NULL);
+ ret = app_control_add_extra_data(app_quick, "HIDE_LAUNCH", "1");
+ _app_control_error_check(ret);
+
+ ret = app_control_send_launch_request(app_quick, NULL, NULL);
+ _app_control_error_check(ret);
+
+ app_control_destroy(app_quick);
+
+ /* Send Launch Request to Setting */
+ ret = app_control_create(&app_setting);
+ _app_control_error_check(ret);
+
+ ret = app_control_set_app_id(app_setting, "org.tizen.setting.volume");
+ _app_control_error_check(ret);
+
+ ret = app_control_send_launch_request(app_setting, NULL, NULL);
_app_control_error_check(ret);
if (VOLUME_ERROR_OK != volume_control_pause())
_E("Failed to pause volume");
- app_control_destroy(svc);
+ app_control_destroy(app_setting);
}
}