InputTypeData g_input_type_data;
InputTemplateData g_input_template_data;
+static bool g_set_mimetype_in_app_service = false;
+static bool g_set_mimetype_in_app_resume = false;
static Elm_Object_Item *it_empty;
static Elm_Object_Item *it_title;
elm_theme_extension_add(NULL, app_edj_path.c_str());
}
-
static Eina_Bool back_cb(void *data, Elm_Object_Item *it)
{
reply_to_sender_by_callback_for_back();
}
}
- if (matched == true)
+ if (matched == true) {
+ free(reply);
continue;
+ }
elm_genlist_item_append(app_data->genlist,
itc,
app_data);
item_size++;
- if (item_size >= 3)
+ free(reply);
+ if (item_size >= 3) {
break;
+ }
}
elm_genlist_item_class_free(itc);
}
elm_genlist_item_class_free(itc);
// drawing button (+)
- if (app_data->mime_type == MIME_TYPE_ALL) {
+ if (app_data->mime_type == MIME_TYPE_ALL && app_data->app_type == APP_TYPE_SELECT_MODE) {
Elm_Genlist_Item_Class *itc;
itc = elm_genlist_item_class_new();
bool _app_create(void* user_data)
{
- int width = 1000, height = 1000;
// App_Data* app_data = NULL;
Evas_Object* layout = NULL;
Evas_Object* conform = NULL;
elm_win_title_set(window, PACKAGE);
elm_win_borderless_set(window, EINA_TRUE);
-// ecore_x_window_size_get(ecore_x_window_root_first_get(), &width, &height);
- evas_object_resize(window, width, height);
elm_win_indicator_mode_set(window, ELM_WIN_INDICATOR_SHOW);
} else {
LOGE("elm_win_add() is failed.");
g_input_template_data.input_template_array = user_template_array;
g_input_template_data.input_template_array_len = user_template_array_len;
+ g_set_mimetype_in_app_service = false;
+
ret = app_control_get_mime(service, &mime_type);
if (ret != APP_CONTROL_ERROR_NONE) {
LOGD("Fail to get mime type : %d", ret);
if (!strncmp(mime_type, "image/", strlen("image/"))) {
app_data->mime_type = MIME_TYPE_IMAGE;
app_data->app_type = APP_TYPE_DRAWING;
+ g_set_mimetype_in_app_service = true;
launch_drawing_app((void *)app_data);
if (mime_type)
free(mime_type);
free(context);
}
-
void _app_pause(void* user_data)
{
PRINTFUNC(DLOG_DEBUG, "");
{
PRINTFUNC(DLOG_DEBUG, "");
resume_voice();
+
+ if (g_set_mimetype_in_app_resume) {
+ app_control_destroy(app_data->source_app_control);
+ app_data->source_app_control = NULL;
+ ui_app_exit();
+ }
+
+ if (g_set_mimetype_in_app_service) {
+ g_set_mimetype_in_app_resume = true;
+ }
}
void _app_terminate(void* user_data)