Fixed issue 39477
authorHimanshu Talwar <himanshu.t@samsung.com>
Thu, 23 May 2013 13:28:21 +0000 (18:58 +0530)
committerHimanshu Talwar <himanshu.t@samsung.com>
Thu, 23 May 2013 13:28:21 +0000 (18:58 +0530)
Change-Id: I884f6c6c6d87915e05122fcdcdc38fe344a41cdc
Signed-off-by: Himanshu Talwar <himanshu.t@samsung.com>
src/GlContentUpdateEventListener.cpp

index c84095c..2676881 100644 (file)
@@ -115,8 +115,12 @@ ContentUpdateEventListener::OnContentFileCreated(Tizen::Content::ContentId conte
 {
        AppLogDebug("ENTER");
        __isSingleFileUpdate = true;
-       AlbumListPresentationModel::GetInstance()->OnContentCreated();
-       FileListPresentationModel::GetInstance()->OnContentCreated();
+
+       if ( contentType == CONTENT_TYPE_IMAGE || contentType == CONTENT_TYPE_VIDEO)
+       {
+               AlbumListPresentationModel::GetInstance()->OnContentCreated();
+               FileListPresentationModel::GetInstance()->OnContentCreated();
+       }
 
        AppLogDebug("EXIT");
 }
@@ -126,9 +130,12 @@ ContentUpdateEventListener::OnContentFileUpdated(Tizen::Content::ContentId conte
 {
        AppLogDebug("ENTER");
        __isSingleFileUpdate = true;
-       AlbumListPresentationModel::GetInstance()->OnContentUpdated();
-       FileListPresentationModel::GetInstance()->OnContentUpdated();
-
+       
+       if ( contentType == CONTENT_TYPE_IMAGE || contentType == CONTENT_TYPE_VIDEO)
+       {
+               AlbumListPresentationModel::GetInstance()->OnContentUpdated();
+               FileListPresentationModel::GetInstance()->OnContentUpdated();
+       }
        AppLogDebug("EXIT");
 }
 
@@ -137,8 +144,12 @@ ContentUpdateEventListener::OnContentFileDeleted(Tizen::Content::ContentId conte
 {
        AppLogDebug("ENTER");
        __isSingleFileUpdate = true;
-       AlbumListPresentationModel::GetInstance()->OnContentDeleted();
-       FileListPresentationModel::GetInstance()->OnContentDeleted();
+
+       if ( contentType == CONTENT_TYPE_IMAGE || contentType == CONTENT_TYPE_VIDEO)
+       {
+               AlbumListPresentationModel::GetInstance()->OnContentDeleted();
+               FileListPresentationModel::GetInstance()->OnContentDeleted();
+       }
 
        AppLogDebug("EXIT");
 }