__pPresentationModel->RefreshCurrentAlbumContentInfoList(CONTENT_TYPE_ALL);
}
- __pPresentationModel->ClearImageCache();\r
-\r
__itemCount = __pPresentationModel->GetCurrentAlbumContentInfoCount();
if (__itemCount == 0)
{
pSceneManager->GoBackward(BackwardSceneTransition(IDSCN_ALBUM_LIST));
}
-\r
+
__pContentIconListView->UpdateList();
AppLogDebug("EXIT(%s)", GetErrorMessage(GetLastResult()));
}
AppLogDebug("EXIT update in application");
return;
}
+ //Clear the ImageCaches when content is updated like rotate.
+ ClearImageCache();
+
IFormContentUpdateEventListener* pInterface = null;
if (__pContentEventListener == null)
{
{
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()));
}
__albumName = albumName;
- __providerId.Clear();\r
+ __providerId.Clear();
if (__pDirectoryList != null)
{
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