Fixing first launch animation image issue [TIZENIOT-1800] 91/240791/1 submit/tizen/20200811.114954
authoraman.jeph <aman.jeph@samsung.com>
Tue, 11 Aug 2020 11:14:41 +0000 (16:44 +0530)
committeraman.jeph <aman.jeph@samsung.com>
Tue, 11 Aug 2020 11:14:41 +0000 (16:44 +0530)
Change-Id: Ie1606a09405e5a25fe52edbdd175eabca1a72dca
Signed-off-by: aman.jeph <aman.jeph@samsung.com>
src/view/mp-video-list-view-folder.c
src/view/mp-video-list-view-thumbnail.c

index 5df4e0801c87e7483e5c3fe2ad5024a767f2c823..fd726e85428d4a4812e29d5c7ef32fce0d38fb0e 100755 (executable)
@@ -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;
index e8405e66638e9cc0216f841de75f9e85102a2cda..6a074da707274b996948fa31f7cc853ad6de3d64 100755 (executable)
@@ -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;