Change in ScanDirectory of rename of folder
authorchitta ranjan <chitta.rs@samsung.com>
Tue, 30 Apr 2013 07:03:13 +0000 (16:03 +0900)
committerchitta ranjan <chitta.rs@samsung.com>
Tue, 30 Apr 2013 07:03:13 +0000 (16:03 +0900)
Change-Id: I125f814943235d2247fba5d308e96689452a7fa8
Signed-off-by: chitta ranjan <chitta.rs@samsung.com>
src/GlAlbumListPresentationModel.cpp

index 002659b..192dd40 100644 (file)
@@ -309,14 +309,7 @@ AlbumListPresentationModel::RenameAlbum(const String& orgPath, const String& new
        else
        {
                __pAlbumListener = pAlbumListener;
-               if (orgPath.Contains(Tizen::System::Environment::GetMediaPath()))
-               {
-                       r = ContentManager::ScanDirectory(Tizen::System::Environment::GetMediaPath(), true, this, __reqId);
-               }
-               else if (orgPath.Contains(Tizen::System::Environment::GetExternalStoragePath()))
-               {
-                       r = ContentManager::ScanDirectory(Tizen::System::Environment::GetExternalStoragePath(), true, this, __reqId);
-               }
+               r = ContentManager::ScanDirectory(newPath, true, this, __reqId);
                AppLogDebug("Content scan failed (%s)", GetErrorMessage(r));
        }
        AppLogDebug("EXIT");