strCnt.Format(FORMAT_BUFFER_SIZE, L"%d", allContentCount);
String strFolderName = pAlbumInfo->GetAlbumName();
+ String strDirectory = pAlbumInfo->GetDirectory(0);
+ AppLog("The directory path is %ls" , strDirectory.GetPointer());
Rectangle rectCanvas(ICON_CAP + FOLDER_CAP, Y_POS_CANVAS, CANVAS_WIDTH, CANVAS_HEIGHT);
Color bgColor(COLOR_CANVAS_BG);
bgColor.SetAlpha(ALPHA_BG);
canvas.FillRectangle(bgColor, rectCanvas);
- if (strFolderName == ResourceManager::GetString(L"IDS_COM_BODY_DOWNLOADS"))
+
+ if (strDirectory == RESERVED_DOWNLOAD_PATH)
{
pBitmap = ResourceManager::GetBitmapN(IDB_ALBUM_ICON_DOWNLOAD);
}
- else if (strFolderName == ResourceManager::GetString(L"IDS_MEDIABR_BODY_CAMERA_ROLL_ABB"))
+ else if (strDirectory == RESERVED_CAMERA_PATH || strDirectory == RESERVED_CAMERA_PATH_EXT)
{
pBitmap = ResourceManager::GetBitmapN(IDB_ALBUM_ICON_CAMERA);
}