return EINA_FALSE;
}
-static Eina_List *
-_content_cache_add(Elm_Gen_Item *it, Eina_List **cache)
-{
- Evas_Object *content = NULL;
- EINA_LIST_FREE(it->content_objs, content)
- {
- *cache = eina_list_append(*cache, content);
- }
-
- return *cache;
-}
-
// TIZEN_ONLY(20150828) : to prevent unnecessary genlist rendering
// _changed is called instead of evas_object_smart_changed API.
static void
if (it->base->color_classes)
edje_object_color_class_clear(VIEW(it));
//
- _item_cache_push(it, _content_cache_add(it, &cache));
+ EINA_LIST_FREE(it->content_objs, content)
+ {
+ if (it->itc->version >= 3 && it->itc->func.reusable_content_get)
+ {
+ // Unfocus content object for initialization.
+ if (GL_IT(it)->wsd->focused_content == content)
+ {
+ elm_object_focus_set(content, EINA_FALSE);
+ GL_IT(it)->wsd->focused_content = NULL;
+ }
+ cache = eina_list_append(cache, content);
+ }
+ else
+ {
+ if (GL_IT(it)->wsd->focused_content == content)
+ GL_IT(it)->wsd->focused_content = NULL;
+ evas_object_del(content);
+ }
+ }
+ _item_cache_push(it, cache);
it->realized = EINA_FALSE;
}