Fixed issue 35225
authorchitta ranjan <chitta.rs@samsung.com>
Fri, 19 Apr 2013 06:13:31 +0000 (15:13 +0900)
committerchitta ranjan <chitta.rs@samsung.com>
Fri, 19 Apr 2013 06:13:31 +0000 (15:13 +0900)
Change-Id: I60a2f061e53994e77569eb7b2e8e97188dba98e6
Signed-off-by: chitta ranjan <chitta.rs@samsung.com>
src/GlAllListPanel.cpp
src/GlFileListPresentationModel.cpp

index 9d1b3eb..1f67381 100644 (file)
@@ -82,8 +82,6 @@ AllListPanel::Refresh(void)
                __pPresentationModel->RefreshCurrentAlbumContentInfoList(CONTENT_TYPE_ALL);
        }
 
-        __pPresentationModel->ClearImageCache();\r
-\r
        __itemCount = __pPresentationModel->GetCurrentAlbumContentInfoCount();
        if (__itemCount == 0)
        {
@@ -92,7 +90,7 @@ AllListPanel::Refresh(void)
 
                pSceneManager->GoBackward(BackwardSceneTransition(IDSCN_ALBUM_LIST));
        }
-\r
+
        __pContentIconListView->UpdateList();
        AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
 }
index 687dbe8..feed484 100644 (file)
@@ -672,6 +672,9 @@ FileListPresentationModel::OnContentUpdated(void)
                AppLogDebug("EXIT update in application");
                return;
        }
+       //Clear the ImageCaches when content is updated like rotate.
+       ClearImageCache();
+
        IFormContentUpdateEventListener* pInterface = null;
        if (__pContentEventListener == null)
        {
@@ -1031,9 +1034,9 @@ FileListPresentationModel::StartAppControl(const String& providerId, const Strin
 {
        AppLogDebug("ENTER");
        AppControl* pAc = AppManager::FindAppControlN(providerId, operationId);
-       __providerId.Clear();\r
-       __providerId.Append(providerId);\r
-\r
+       __providerId.Clear();
+       __providerId.Append(providerId);
+
        if (pAc == null)
        {
                AppLogDebug("EXIT 1(%s)", GetErrorMessage(GetLastResult()));
@@ -1100,7 +1103,7 @@ FileListPresentationModel::SetCurrentAlbumInfo(const String& albumName, const IL
        }
 
        __albumName = albumName;
-       __providerId.Clear();\r
+       __providerId.Clear();
 
        if (__pDirectoryList != null)
        {
@@ -1613,28 +1616,28 @@ FileListPresentationModel::RotateImage(int index, RotateMode rotateMode)
 
        ContentManager::ScanFile(filePath);
        return r;
-}\r
-\r
-void\r
-FileListPresentationModel::ClearImageCache(void)\r
-{\r
-       AppLogDebug("FileListPresentationModel::ClearImageCache ++");\r
-\r
-       if(__pIconListViewCache != null && __providerId.Equals(APPCONTROL_PROVIDER_ID_IMAGE, false) == true)\r
-       {\r
-               bool clearThumbnailReq = true;\r
-               while(__pIconListViewCache->GetCount() != 0)\r
-               {\r
-                       //This is to Clear the Thumbnail Reuqests only Once\r
-                       if(clearThumbnailReq == true)\r
-                       {\r
-                               ClearThumbnailRequests();\r
-                               clearThumbnailReq = false;\r
-                       }\r
-                       __pIconListViewCache->RemoveAt(0, true);\r
-               }\r
-       }\r
-       AppLogDebug("FileListPresentationModel::ClearImageCache --");\r
+}
+
+void
+FileListPresentationModel::ClearImageCache(void)
+{
+       AppLogDebug("FileListPresentationModel::ClearImageCache ++");
+
+       if(__pIconListViewCache != null && __providerId.Equals(APPCONTROL_PROVIDER_ID_IMAGE, false) == true)
+       {
+               bool clearThumbnailReq = true;
+               while(__pIconListViewCache->GetCount() != 0)
+               {
+                       //This is to Clear the Thumbnail Reuqests only Once
+                       if(clearThumbnailReq == true)
+                       {
+                               ClearThumbnailRequests();
+                               clearThumbnailReq = false;
+                       }
+                       __pIconListViewCache->RemoveAt(0, true);
+               }
+       }
+       AppLogDebug("FileListPresentationModel::ClearImageCache --");
 }
 
 void