From: Jehun Lim Date: Wed, 7 Oct 2015 07:49:58 +0000 (+0900) Subject: movie: update recently watched item for UPDATE_PLAY_INFO type X-Git-Tag: accepted/tizen/tv/20151013.040517~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b3fe7f9facf2aee7803020f9c67e03605d6e8e43;p=profile%2Ftv%2Fapps%2Fnative%2Fair_mediahub.git movie: update recently watched item for UPDATE_PLAY_INFO type Change-Id: I262a3c80285e39cfb58e179de23a65da8e1484ca Signed-off-by: Jehun Lim --- diff --git a/src/layout/movie.c b/src/layout/movie.c index 79416cd..4d963b5 100644 --- a/src/layout/movie.c +++ b/src/layout/movie.c @@ -660,7 +660,7 @@ static void _update(void *layout_data, int update_type, void *data) listmgr_update_content_item(priv->listmgr); _update_recent_item(priv, NULL); break; - case UPDATE_FOCUS: + case UPDATE_PLAY_INFO: if (!data) { _ERR("invalid argument"); return; @@ -668,9 +668,11 @@ static void _update(void *layout_data, int update_type, void *data) vdata = data; - listmgr_focus_play_info(priv->listmgr); _update_recent_item(priv, vdata->id); break; + case UPDATE_FOCUS: + listmgr_focus_play_info(priv->listmgr); + break; case UPDATE_BACK: listmgr_focus_content_list(priv->listmgr, NULL); break; diff --git a/src/view/detail.c b/src/view/detail.c index d55d2ca..784d0cf 100644 --- a/src/view/detail.c +++ b/src/view/detail.c @@ -725,7 +725,7 @@ static void _set_no_play_info(struct _priv *priv) int type; char buf[64] = {0}; - type = priv->vinfo->app_contents_type; + type = view_info[priv->view_type].app_contents_type; if (type == CONTENTS_MOVIE) snprintf(buf, sizeof(buf), STR_NO_PLAY_MOVIE);