From: Himanshu Date: Thu, 25 Jul 2013 07:39:44 +0000 (+0530) Subject: Fixed issue 47211 X-Git-Tag: 2.2_release~12 X-Git-Url: http://review.tizen.org/git/?p=apps%2Fosp%2FGallery.git;a=commitdiff_plain;h=af7e691e76bfb25ff710f7bd54819a0c881c4c9b Fixed issue 47211 Change-Id: I08da08b694852bc29596a04c4927550d04e162f6 Signed-off-by: Himanshu --- diff --git a/src/GlAlbumListPresentationModel.cpp b/src/GlAlbumListPresentationModel.cpp index 9100044..f3306a1 100644 --- a/src/GlAlbumListPresentationModel.cpp +++ b/src/GlAlbumListPresentationModel.cpp @@ -388,17 +388,20 @@ AlbumListPresentationModel::DrawFontImage(Canvas& canvas, AlbumInfo* pAlbumInfo, 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); }