Fixed issue 47211
authorHimanshu <himanshu.t@samsung.com>
Thu, 25 Jul 2013 07:39:44 +0000 (13:09 +0530)
committerHimanshu <himanshu.t@samsung.com>
Thu, 25 Jul 2013 07:39:44 +0000 (13:09 +0530)
Change-Id: I08da08b694852bc29596a04c4927550d04e162f6
Signed-off-by: Himanshu <himanshu.t@samsung.com>
src/GlAlbumListPresentationModel.cpp

index 9100044..f3306a1 100644 (file)
@@ -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);
        }