genlist: fix banded bg invisible issue
authorSangHyeon Lee <sh10233.lee@samsung.com>
Mon, 14 Nov 2016 04:11:52 +0000 (13:11 +0900)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 17 Nov 2016 08:07:49 +0000 (17:07 +0900)
Change-Id: Ic9adb9de902faee188f3ae140429c00399489e79
Signed-off-by: SangHyeon Lee <sh10233.lee@samsung.com>
src/mobile_lib/elm_genlist.c

index 10128e0a52bd94202ba2f3b0a14552c03754fc8d..28843d75ea2934c159cc2e6f57f2647b36780956 100644 (file)
@@ -813,10 +813,6 @@ out:
              _item_content_free(old);
           }
      }
-
-#ifndef TIZEN_PROFILE_WEARABLE
-   _banded_item_bg_add(it, target);
-#endif
 }
 
 static void
@@ -1685,7 +1681,9 @@ _item_realize(Elm_Gen_Item *it,
              elm_interface_atspi_accessible_children_changed_added_signal_emit(sd->obj, EO_OBJ(it));
           }
         //
-
+#ifndef TIZEN_PROFILE_WEARABLE
+        _banded_item_bg_add(it, VIEW(it));
+#endif
         // Register accessibility before realized callback
         // because user can customize accessibility.
         _access_widget_item_register(it);
@@ -5060,6 +5058,9 @@ _item_update(Elm_Gen_Item *it)
    else if (GL_IT(it)->deco_it_view)
      _view_inflate(GL_IT(it)->deco_it_view, it, &(GL_IT(it)->deco_it_contents));
 
+#ifndef TIZEN_PROFILE_WEARABLE
+   _banded_item_bg_add(it, VIEW(it));
+#endif
    if (it->selected)
       evas_object_smart_callback_call(WIDGET(it), SIG_HIGHLIGHTED, EO_OBJ(it));