From: aman.jeph Date: Tue, 11 Aug 2020 11:14:41 +0000 (+0530) Subject: Fixing first launch animation image issue [TIZENIOT-1800] X-Git-Tag: submit/tizen/20200811.114954^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=563075fb89eb18866ba3901a5f786f657dce775f;p=profile%2Fiot%2Fapps%2Fnative%2Fvideo-player.git Fixing first launch animation image issue [TIZENIOT-1800] Change-Id: Ie1606a09405e5a25fe52edbdd175eabca1a72dca Signed-off-by: aman.jeph --- diff --git a/src/view/mp-video-list-view-folder.c b/src/view/mp-video-list-view-folder.c index 5df4e08..fd726e8 100755 --- a/src/view/mp-video-list-view-folder.c +++ b/src/view/mp-video-list-view-folder.c @@ -876,7 +876,8 @@ void mp_folder_view_update_base_layout_content(Evas_Object* content) { mp_list_view_view_type_set(MP_LIST_VIEW_AS_FOLDER_LIST); Evas_Object* old_content = mp_list_view_base_layout_content_set(content); - if(old_content == g_pFolderView->pNocontentlayout) + // delete only when no-content is actually removed. + if(old_content == g_pFolderView->pNocontentlayout && old_content != content) { MP_DEL_OBJ(g_pFolderView->pNocontentlayout); g_pFolderView->pNocontentlayout = NULL; diff --git a/src/view/mp-video-list-view-thumbnail.c b/src/view/mp-video-list-view-thumbnail.c index e8405e6..6a074da 100755 --- a/src/view/mp-video-list-view-thumbnail.c +++ b/src/view/mp-video-list-view-thumbnail.c @@ -260,7 +260,8 @@ void mp_thumbnail_view_update_base_layout_content(Evas_Object* content) { mp_list_view_view_type_set(MP_LIST_VIEW_AS_THUMBNAIL_LIST); Evas_Object* old_content = mp_list_view_base_layout_content_set(g_pThumbnailView->pCurrentLayout); - if(old_content == g_pThumbnailView->pNocontentlayout) + // delete only when no-content is actually removed. + if(old_content == g_pThumbnailView->pNocontentlayout && old_content != content) { MP_DEL_OBJ(g_pThumbnailView->pNocontentlayout); g_pThumbnailView->pNocontentlayout = NULL;