From: Hyojung Jo Date: Fri, 7 Aug 2015 04:29:18 +0000 (+0900) Subject: Append grid items if the grid is firstly loaded X-Git-Tag: accepted/tizen/tv/20150808.025838~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8efa25220b56d6f105c19313caab5c31cf5f674a;p=profile%2Ftv%2Fapps%2Fnative%2Fair_favorite.git Append grid items if the grid is firstly loaded Change-Id: Ia1702390baea0deeacc999b5c2bcf4ab33105131 Signed-off-by: Hyojung Jo --- diff --git a/src/view/view_base.c b/src/view/view_base.c index 8bb31e3..aeeacc6 100644 --- a/src/view/view_base.c +++ b/src/view/view_base.c @@ -114,12 +114,12 @@ static bool _load_current_grid(struct _priv *priv, int id) return true; } - gdata->list = list; - } + if (!gridmgr_append_list(priv->gmgr, gdata->id, list)) { + _ERR("Gridmgr append list failed."); + return false; + } - if (!gridmgr_append_list(priv->gmgr, gdata->id, gdata->list)) { - _ERR("Gridmgr append list failed."); - return false; + gdata->list = list; } elm_object_part_content_set(priv->base, PART_GENGRID, gdata->grid);