diff options
author | Jehun Lim <jehun.lim@samsung.com> | 2015-12-21 13:01:58 +0900 |
---|---|---|
committer | Jehun Lim <jehun.lim@samsung.com> | 2015-12-21 13:01:58 +0900 |
commit | c03963d9f13af87d16f29f33a8cfa7c0ca387e5a (patch) | |
tree | 8c2cdc19e7148d5f03f1e0d1f50c7729cfc51c2c | |
parent | 999c45fd0068ca7bc8cbca329c49dbe19a8d8f99 (diff) | |
download | air_mediahub-c03963d9f13af87d16f29f33a8cfa7c0ca387e5a.tar.gz air_mediahub-c03963d9f13af87d16f29f33a8cfa7c0ca387e5a.tar.bz2 air_mediahub-c03963d9f13af87d16f29f33a8cfa7c0ca387e5a.zip |
base: modify layout id to music for player and play info update
Change-Id: Iaf8f80011d73d38add1b9fc8a29bf4b3b53a48e6
Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
-rw-r--r-- | src/view/base.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/view/base.c b/src/view/base.c index 8742f44..f4e21d8 100644 --- a/src/view/base.c +++ b/src/view/base.c @@ -991,6 +991,15 @@ static void _update(void *view_data, int update_type, void *data) switch (update_type) { case UPDATE_FOCUS: + if (!data) + goto err; + + vdata = data; + + layoutmgr_update_layout(priv->lmgr, + g_menu_item[priv->current_layout].layout_id, + update_type, vdata); + break; case UPDATE_PLAY_INFO: case UPDATE_PLAYER: if (!data) @@ -999,7 +1008,7 @@ static void _update(void *view_data, int update_type, void *data) vdata = data; layoutmgr_update_layout(priv->lmgr, - g_menu_item[priv->current_layout].layout_id, + g_menu_item[E_LAYOUT_MUSIC].layout_id, update_type, vdata); break; case UPDATE_CONTENT_ITEM: |