From 563075fb89eb18866ba3901a5f786f657dce775f Mon Sep 17 00:00:00 2001 From: "aman.jeph" Date: Tue, 11 Aug 2020 16:44:41 +0530 Subject: [PATCH] Fixing first launch animation image issue [TIZENIOT-1800] Change-Id: Ie1606a09405e5a25fe52edbdd175eabca1a72dca Signed-off-by: aman.jeph --- src/view/mp-video-list-view-folder.c | 3 ++- src/view/mp-video-list-view-thumbnail.c | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) 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; -- 2.34.1