summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJehun Lim <jehun.lim@samsung.com>2015-12-18 04:01:29 (GMT)
committerJehun Lim <jehun.lim@samsung.com>2015-12-18 04:01:29 (GMT)
commit058e15082aadde133cf52a94377fc80259961c52 (patch)
tree8163f569fe6afe4b8d84d559cf5538986f802647
parent96d3912f199a4217f51f18a8b34b8be4e7886496 (diff)
downloadair_mediahub-058e15082aadde133cf52a94377fc80259961c52.zip
air_mediahub-058e15082aadde133cf52a94377fc80259961c52.tar.gz
air_mediahub-058e15082aadde133cf52a94377fc80259961c52.tar.bz2
base: pop view when usb state is changedrefs/changes/03/54803/1
Change-Id: I591b96febb68a5d33e647ed3b19b4b398c4f3edf Signed-off-by: Jehun Lim <jehun.lim@samsung.com>
-rw-r--r--src/view/base.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/view/base.c b/src/view/base.c
index aba56f2..b318011 100644
--- a/src/view/base.c
+++ b/src/view/base.c
@@ -813,6 +813,7 @@ static void _media_db_updated_cb(media_content_error_e error,
static void _usb_changed_cb(void *data, int state)
{
media_content_noti_h noti_h;
+ struct view_update_data vdata;
struct _priv *priv;
int r;
@@ -827,6 +828,13 @@ static void _usb_changed_cb(void *data, int state)
_ERR("failed to add db updated cb: %d", r);
priv->noti_h = noti_h;
+
+ vdata.status = E_PLAYER_STOP;
+ viewmgr_update_view(VIEW_MPLAYER, UPDATE_PLAYER, &vdata);
+
+ /* to show base view */
+ while (viewmgr_active_view_count() > 1)
+ viewmgr_pop_view();
}
static Evas_Object *_create(Evas_Object *win, void *data)