movie: update recently watched item for UPDATE_PLAY_INFO type 49/49149/1
authorJehun Lim <jehun.lim@samsung.com>
Wed, 7 Oct 2015 07:49:58 +0000 (16:49 +0900)
committerJehun Lim <jehun.lim@samsung.com>
Wed, 7 Oct 2015 07:49:58 +0000 (16:49 +0900)
Change-Id: I262a3c80285e39cfb58e179de23a65da8e1484ca
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
src/layout/movie.c
src/view/detail.c

index 79416cd..4d963b5 100644 (file)
@@ -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;
index d55d2ca..784d0cf 100644 (file)
@@ -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);