From 445656011c03e50568eb60e98a131f82bbde541a Mon Sep 17 00:00:00 2001 From: "bhutani.92" Date: Thu, 15 Dec 2016 19:14:06 +0530 Subject: [PATCH] [TSAM-11666] Count Displays wrong after delete Change-Id: I43042876695cc7d2fff8854e8bbf2bcc9461c7bd Signed-off-by: bhutani.92 --- src/common/mp-common.c | 8 ++++++-- src/core/mp-playlist-mgr.c | 1 + src/view/mp-player-view.c | 6 ++++++ 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/src/common/mp-common.c b/src/common/mp-common.c index 1bfaab8..92de486 100644 --- a/src/common/mp-common.c +++ b/src/common/mp-common.c @@ -991,6 +991,12 @@ mp_common_show_player_view(int launch_type, bool disable_effect, bool start_playback, bool start_new_file) { startfunc; + + struct appdata *ad = mp_util_get_appdata(); + MP_CHECK(ad); + + ad->hide_player_view = false; + WARN_TRACE ("launch type[%d] disable_effect[%d], start_playback[%d], start_new_file[%d]", launch_type, disable_effect, start_playback, start_new_file); @@ -1020,8 +1026,6 @@ mp_common_show_player_view(int launch_type, bool disable_effect, } if (start_playback) { - struct appdata *ad = mp_util_get_appdata(); - MP_CHECK(ad); player_view->start_on_transition_finish = true; ad->player_state = PLAY_STATE_PLAYING; } diff --git a/src/core/mp-playlist-mgr.c b/src/core/mp-playlist-mgr.c index 7dacc8a..261ca72 100644 --- a/src/core/mp-playlist-mgr.c +++ b/src/core/mp-playlist-mgr.c @@ -757,6 +757,7 @@ void mp_playlist_mgr_check_existance_and_refresh(mp_plst_mgr * if (current_removed && cur == item) { WARN_TRACE("current track does NOT exist"); *current_removed = true; + mp_view_mgr_post_event(GET_VIEW_MGR, MP_DB_UPDATED); } } IF_G_FREE(temp_uri); diff --git a/src/view/mp-player-view.c b/src/view/mp-player-view.c index 81ec292..108fe95 100644 --- a/src/view/mp-player-view.c +++ b/src/view/mp-player-view.c @@ -1181,6 +1181,7 @@ static Eina_Bool _mp_player_view_back_button_clicked_cb(void *data, struct appdata *ad = mp_util_get_appdata(); MP_CHECK_FALSE(ad); + ad->hide_player_view = true; ad->del_cb_invoked = 0; mp_evas_object_del(view->volume_popup); @@ -3213,6 +3214,11 @@ static int _mp_player_view_stop_playback(void *thiz) static void _mp_player_view_resume(void *thiz) { startfunc; + struct appdata *ad = mp_util_get_appdata(); + MP_CHECK(ad); + + ad->hide_player_view = false; + mp_volume_key_grab_condition_set(MP_VOLUME_KEY_GRAB_COND_VIEW_VISIBLE, true); mp_player_view_progress_timer_thaw(thiz); -- 2.7.4