application/src/PodcastFeedView.cpp
changeset 79 0bd6b9a3f027
parent 76 223f270fa7ff
child 80 50345a6ad0c3
equal deleted inserted replaced
78:12c59f14a031 79:0bd6b9a3f027
   360 			}
   360 			}
   361 		
   361 		
   362 		if(aFeedInfo.LastError() != KErrNone)
   362 		if(aFeedInfo.LastError() != KErrNone)
   363 			{
   363 			{
   364 			GetFeedErrorText(unplayedShows, aFeedInfo.LastError());
   364 			GetFeedErrorText(unplayedShows, aFeedInfo.LastError());
       
   365 			updatedDate.Zero();
   365 			}
   366 			}
   366 		}
   367 		}
   367 	CArrayPtr<CGulIcon>* icons = iListContainer->Listbox()->ItemDrawer()->FormattedCellData()->IconArray();
   368 	CArrayPtr<CGulIcon>* icons = iListContainer->Listbox()->ItemDrawer()->FormattedCellData()->IconArray();
   368 	iconIndex = iFeedIdForIconArray.Find(aFeedInfo.Uid());
   369 	iconIndex = iFeedIdForIconArray.Find(aFeedInfo.Uid());
   369 	if(iconIndex == KErrNotFound && aFeedInfo.FeedIcon() != NULL && aFeedInfo.ImageFileName().Length() > 0 && 
   370 	if(iconIndex == KErrNotFound && aFeedInfo.FeedIcon() != NULL && aFeedInfo.ImageFileName().Length() > 0 && 
   383 	else 
   384 	else 
   384 		{
   385 		{
   385 		iconIndex++;
   386 		iconIndex++;
   386 		}	
   387 		}	
   387 
   388 
   388 	if (unplayedShows.Length() > 0) {
   389 	if (unplayedShows.Length() > 0 && updatedDate.Length() > 0) {
   389 		unplayedShows.Insert(0,_L(", "));
   390 		unplayedShows.Insert(0,_L(", "));
   390 	}
   391 	}
   391 	
   392 	
   392 	iListboxFormatbuffer.Format(KFeedFormat(), iconIndex, &(aFeedInfo.Title()), &updatedDate,  &unplayedShows);
   393 	iListboxFormatbuffer.Format(KFeedFormat(), iconIndex, &(aFeedInfo.Title()), &updatedDate,  &unplayedShows);
   393 	}
   394 	}