[TSAM-11666] Count Displays wrong after delete 35/105135/2 submit/tizen_3.0/20161215.140423
authorbhutani.92 <bhutani.92@samsung.com>
Thu, 15 Dec 2016 13:44:06 +0000 (19:14 +0530)
committerbhutani.92 <bhutani.92@samsung.com>
Thu, 15 Dec 2016 13:45:18 +0000 (19:15 +0530)
Change-Id: I43042876695cc7d2fff8854e8bbf2bcc9461c7bd
Signed-off-by: bhutani.92 <bhutani.92@samsung.com>
src/common/mp-common.c
src/core/mp-playlist-mgr.c
src/view/mp-player-view.c

index 1bfaab8..92de486 100644 (file)
@@ -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;
        }
index 7dacc8a..261ca72 100644 (file)
@@ -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);
index 81ec292..108fe95 100644 (file)
@@ -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);