Genlist: Fix for genlist item field update

Summary: Avoid unnecessary operations on unrealized item when item field update is called

Test Plan: Call item_field_update on an unrealized item

Reviewers: cedric, raster, SanghyeonLee

Reviewed By: SanghyeonLee

Subscribers: #reviewers, rajeev.jnnce, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D9019
This commit is contained in:
Godly T.Alias 2019-05-30 15:46:27 +09:00 committed by SangHyeon Jade Lee
parent 57233f552c
commit cdfcd02886
1 changed files with 7 additions and 0 deletions

View File

@ -7418,6 +7418,13 @@ _elm_genlist_item_fields_update(Eo *eo_item EINA_UNUSED, Elm_Gen_Item *it,
if (!it->item->block) return;
if (!it->realized)
{
if (!itf || (itf & ELM_GENLIST_ITEM_FIELD_CONTENT))
elm_genlist_item_update(eo_item);
return;
}
if ((!itf) || (itf & ELM_GENLIST_ITEM_FIELD_TEXT))
{
_item_text_realize(it, VIEW(it), &it->texts, parts);