}
}
-static char *
-_main_menu_title_text_get(void *data, Evas_Object *obj, const char *part)
-{
- char buf[1024];
-
- snprintf(buf, 1023, "%s", "Select method");
- return strdup(buf);
-}
-
void _create_genlist_items(void* user_data)
{
App_Data* app_data = (App_Data*) user_data;
elm_genlist_clear(app_data->genlist);
Elm_Genlist_Item_Class * itc0 = elm_genlist_item_class_new();
- itc0->item_style = "title";
- itc0->func.text_get = _main_menu_title_text_get;
+ itc0->item_style = NULL;
+ itc0->func.text_get = NULL;
itc0->func.content_get = NULL;
itc0->func.state_get = NULL;
itc0->func.del = NULL;
reply = input_smartreply_get_nth_item(i, &type);
if (reply == NULL)
continue;
- PRINTFUNC(DLOG_DEBUG, "SmartReply = [%d]%s", i, reply);
+ SECURE_LOGD("SmartReply = [%d]%s", i, reply);
for (j = 0; j < template_list.size(); j++) {
const char *template_str;
item_size++;
}
elm_genlist_item_class_free(itc);
+
+ // dummy item for empty space
+ Elm_Genlist_Item_Class * itc0 = elm_genlist_item_class_new();
+ itc0->item_style = "title";
+ itc0->func.text_get = NULL;
+ itc0->func.content_get = NULL;
+ itc0->func.state_get = NULL;
+ itc0->func.del = NULL;
+
+ it_empty = elm_genlist_item_append(app_data->genlist, itc0,
+ NULL, NULL,
+ ELM_GENLIST_ITEM_NONE,
+ NULL, NULL);
+ elm_genlist_item_class_free(itc0);
}
return item_size;