elm_genlist: Update color class when item realized and unrealized for TV profile 68/174068/2
authorJeonghyun Yun <jh0506.yun@samsung.com>
Wed, 28 Mar 2018 02:18:25 +0000 (11:18 +0900)
committerJeonghyun Yun <jh0506.yun@samsung.com>
Wed, 28 Mar 2018 02:20:55 +0000 (02:20 +0000)
@tizen_fix

Change-Id: Id57d7c1333aaf582826bec1c22e56e6721c96bb9
Signed-off-by: Jeonghyun Yun <jh0506.yun@samsung.com>
src/lib/elm_genlist.c

index 2e8a154..7ca093c 100644 (file)
@@ -1918,6 +1918,11 @@ _item_realize(Elm_Gen_Item *it,
      }
    //
 
+   //TIZEN_ONLY(20180328): clean up elm color class feature
+   if (it->base->color_classes)
+     _elm_widget_item_color_class_update(it->base);
+   //
+
    /* access */
    if (_elm_config->access_mode) _access_widget_item_register(it);
 
@@ -5330,6 +5335,11 @@ _item_unrealize(Elm_Gen_Item *it)
      }
    //
 
+   //TIZEN_ONLY(20180328): clean up elm color class feature
+   if (it->base->color_classes)
+     edje_object_color_class_clear(VIEW(it));
+   //
+
    // unswallow VIEW(it) first then manipulate VIEW(it)
    _decorate_item_unrealize(it);
    if (GL_IT(it)->wsd->decorate_all_mode) _decorate_all_item_unrealize(it);