ret_if(!content_info);
ret_if(!content_info->attach_panel);
- attach_panel_h attach_panel = content_info->attach_panel; // product only
+ attach_panel_h attach_panel = content_info->attach_panel;
ret_if(_attach_panel_is_deleted(attach_panel));
- /* This is just for protocol log */
_D("relay callback is called");
-#if 0 // memory leak
- ret = app_control_get_extra_data_array(reply, "http://tizen.org/appcontrol/data/selected", &select, &length);
- if (APP_CONTROL_ERROR_NONE == ret && select) {
- for (i = 0; i < length; i++) {
- _D("selected is %s[%d]", select[i], i);
- }
- }
-
- ret = app_control_get_extra_data_array(reply, "http://tizen.org/appcontrol/data/path", &select, &length);
- if (APP_CONTROL_ERROR_NONE == ret && select) {
- for (i = 0; i < length; i++) {
- _D("path is %s[%d]", select[i], i);
- }
- }
-#endif
if (content_info->attach_panel->result_cb) {
- /* XXX: call result callback after hiding panel
- content_info->attach_panel->result_cb(content_info->attach_panel
- , content_info->innate_content_info->content_category
- , reply
- , result
- , content_info->attach_panel->result_data); */
-
bool is_file_selected = false;
ret = app_control_get_extra_data_array(reply, APP_CONTROL_DATA_SELECTED, &select, &length);
if (ret == APP_CONTROL_ERROR_NONE && length > 0) {
{
content_s *content_info = priv;
char *enable = NULL;
- //char **select = NULL;
-
- //int i = 0;
- //int length = 0;
int ret = 0;
ret_if(!content_info);
_D("The core of the panel sends the results to the caller");
- /* This is just for protocol log */
_D("relay callback is called");
-#if 0 // memory leak
- ret = app_control_get_extra_data_array(result, "http://tizen.org/appcontrol/data/selected", &select, &length);
- if (APP_CONTROL_ERROR_NONE == ret && select) {
- for (i = 0; i < length; i++) {
- _D("selected is %s[%d]", select[i], i);
- }
- }
-
- ret = app_control_get_extra_data_array(result, "http://tizen.org/appcontrol/data/path", &select, &length);
- if (APP_CONTROL_ERROR_NONE == ret && select) {
- for (i = 0; i < length; i++) {
- _D("path is %s[%d]", select[i], i);
- }
- }
-#endif
if (content_info->attach_panel->result_cb) {
attach_panel_h attach_panel = content_info->attach_panel;
if (need_hide) {
/* This is same with attach_panel_hide() */
_gesture_hide(content_info->attach_panel);
- _attach_panel_call_result_callback(attach_panel, content_info, result, APP_CONTROL_RESULT_SUCCEEDED, true); // product only
+ _attach_panel_call_result_callback(attach_panel, content_info, result, APP_CONTROL_RESULT_SUCCEEDED, true);
}
} else {
_D("content_info->attach_panel->result_cb is NULL");