TIZENIOT-2418 Fix added songs not appearing in playlist 28/253928/1 submit/tizen/20210219.103418 submit/tizen/20210223.013634 submit/tizen/20210223.071714 submit/tizen/20210226.050008
authorJagrat Patidar <j1.patidar@samsung.com>
Fri, 19 Feb 2021 09:50:49 +0000 (15:20 +0530)
committerJagrat Patidar <j1.patidar@samsung.com>
Fri, 19 Feb 2021 10:29:28 +0000 (10:29 +0000)
Change-Id: Ie7bee3abe8e4b37ca77ed08e91ed09ae0faee0c3
(cherry picked from commit 412cc46027c1852d3b940027f9d922ce77c7e17e)

src/view/mp-playlist-detail-view.c

index c1a93f5ed8330b5ded3426b8ee8d1b94d8b034f4..f6d617b50f04b1e685a8faa580e881dd8bcdb76d 100755 (executable)
@@ -411,11 +411,12 @@ static void _mp_playlist_detail_view_resume(void *thiz) {
        MpPlaylistDetailView_t *view = (MpPlaylistDetailView_t *) thiz;
        mp_view_freeze_nowplaying((MpView_t *) thiz, 0);
 
-       /*check is no content */
        MpTrackList_t *track_list = (MpTrackList_t *) view->content_to_show;
-       if (track_list->no_content != NULL) {
-               mp_list_update((MpList_t *) track_list);
-       }
+
+       //Removed the condition if (track_list->no_content != NULL) from here,
+       //because to show added/removed tracks track_list need to be updated
+       //whether no_content is NULL or not NULL.
+       mp_list_update((MpList_t *) track_list);
 }
 
 static int