45979
authorsanthosh <santhosh.ic@samsung.com>
Fri, 12 Jul 2013 12:26:05 +0000 (17:56 +0530)
committersanthosh <santhosh.ic@samsung.com>
Fri, 12 Jul 2013 12:26:05 +0000 (17:56 +0530)
Change-Id: I837237c67bd89fb6accf5d7b0be58ac8026a0bd4
Signed-off-by: santhosh <santhosh.ic@samsung.com>
inc/GlAlbumListPresentationModel.h
src/GlAlbumListPresentationModel.cpp
src/GlContentUpdateEventListener.cpp

index 8bbf574..b360a12 100644 (file)
@@ -76,7 +76,7 @@ public:
 
        virtual void OnThumbnailReceivedN(Tizen::Base::Runtime::IEventArg& eventArg);
 
-       void OnContentScanCompleted(const Tizen::Base::String &scanPath);\r
+       bool OnContentScanCompleted(const Tizen::Base::String &scanPath);\r
 
        void OnContentCreated(void);
        void OnContentUpdated(void);
index 7e8b035..63a048f 100644 (file)
@@ -323,7 +323,7 @@ AlbumListPresentationModel::RenameAlbum(const String& orgPath, const String& new
        return r;
 }
 
-void AlbumListPresentationModel::OnContentScanCompleted (const Tizen::Base::String &scanPath)\r
+bool AlbumListPresentationModel::OnContentScanCompleted (const Tizen::Base::String &scanPath)\r
 {
        AppLogDebug("ENTER");\r
        if (__pAlbumListener && (scanPath == __renameNewPath))\r
@@ -331,8 +331,11 @@ void AlbumListPresentationModel::OnContentScanCompleted (const Tizen::Base::Stri
                InitializeAlbumInfoList(CONTENT_TYPE_ALL);
                __pAlbumListener->OnAlbumRenameComplete();
                __renameNewPath = L"";
+               AppLogDebug("EXIT");
+               return true;
        }
        AppLogDebug("EXIT");
+       return false;
 }
 
 void
index ec3931c..818f175 100644 (file)
@@ -225,7 +225,11 @@ ContentUpdateEventListener::OnContentDirectoryScanCompleted(const Tizen::Base::S
        }
        else
        {
-               __changeNotificationReceived = true;
+               bool renameHandled = AlbumListPresentationModel::GetInstance()->OnContentScanCompleted(directoryPath);
+               if (!renameHandled)
+               {
+                       __changeNotificationReceived = true;
+               }
        }\r
 
        AppLogDebug("EXIT");