From c2429724fb08195c73382597106acd0d52c63c43 Mon Sep 17 00:00:00 2001 From: Godly Thekkethottiyil Alias Date: Tue, 3 Mar 2020 15:59:19 +0530 Subject: [PATCH] [Genlist] Avoid content deletion on reusable scenario To avoid contents getting deleted during item update in reusable scenario, removed content clearing from item_update, contents will be deleted on content_realize if old content and new content passed is not same Change-Id: I83159d7d5b4fd136d389826495342516eb3cbc7c Signed-off-by: Godly Thekkethottiyil Alias --- src/lib/elementary_tizen/elm_genlist.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/lib/elementary_tizen/elm_genlist.c b/src/lib/elementary_tizen/elm_genlist.c index b4ae4ef..4efc524 100644 --- a/src/lib/elementary_tizen/elm_genlist.c +++ b/src/lib/elementary_tizen/elm_genlist.c @@ -1003,7 +1003,10 @@ _item_content_realize(Elm_Gen_Item *it, Eina_List *source; const char *key; - if (!parts) + //TIZEN_ONLY(21Apr2020): Avoid doing content deletion during item update + if (!parts && + (it->itc->version < 3 || !it->itc->func.reusable_content_get)) + // { EINA_LIST_FREE(*contents, content) _item_content_free(content); @@ -6868,7 +6871,9 @@ _item_update(Elm_Gen_Item *it) Evas_Object *c; if (!it->realized) return; - _view_clear(VIEW(it), &(it->contents)); + //TIZEN_ONLY(21Apr2020): Avoid doing content deletion during item update + _view_clear(VIEW(it), NULL, it); + // EINA_LIST_FREE(GL_IT(it)->flip_content_objs, c) evas_object_del(c); _view_clear(GL_IT(it)->deco_it_view, &(GL_IT(it)->deco_it_contents)); -- 2.7.4