Fix for mark all old visibility symbian1
authorSebastian Brannstrom <sebastianb@symbian.org>
Tue, 16 Nov 2010 09:35:47 +0000
branchsymbian1
changeset 361 861a25b8306b
parent 360 e2fa17cfc987
child 362 a8999fface41
Fix for mark all old visibility
application/src/PodcastShowsView.cpp
--- a/application/src/PodcastShowsView.cpp	Tue Nov 16 09:35:25 2010 +0000
+++ b/application/src/PodcastShowsView.cpp	Tue Nov 16 09:35:47 2010 +0000
@@ -478,7 +478,7 @@
 		{
 		if (aShowInfo.ShowSize() > 0)
 			{
-				TInt showSize = aShowInfo.ShowSize() >= aSizeDownloaded ? aShowInfo.ShowSize() : aSizeDownloaded;
+				TUint showSize = aShowInfo.ShowSize() >= (TUint) aSizeDownloaded ? aShowInfo.ShowSize() : (TUint) aSizeDownloaded;
 				infoSize.Format(KSizeDownloadingOf(), ((float) aSizeDownloaded / (float) KSizeMb),
 						((float) showSize / (float)KSizeMb));
 			}
@@ -724,22 +724,22 @@
 	
 void CPodcastShowsView::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)
 {
-	if(aResourceId == R_PODCAST_SHOWSVIEW_MENU && !iShowNewShows)
+	if(aResourceId == R_PODCAST_SHOWSVIEW_MENU)
 		{
-		TBool showMarkAllPlayed = EFalse;
+		TBool hideMarkAllPlayed = ETrue;
 		for (int i=0;i<iPodcastModel.ActiveShowList().Count();i++)
 			{
 			CShowInfo* info = iPodcastModel.ActiveShowList()[i];
 			if (info->PlayState() == ENeverPlayed)
 				{
-				showMarkAllPlayed = ETrue;
+				hideMarkAllPlayed = EFalse;
 				break;
 				}
 			
 			}
 		
 		TBool updatingState = iPodcastModel.FeedEngine().ClientState() != EIdle && iPodcastModel.FeedEngine().ActiveClientUid() == iPodcastModel.ActiveFeedInfo()->Uid();
-		aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState || !showMarkAllPlayed);	
+		aMenuPane->SetItemDimmed(EPodcastMarkAllPlayed, updatingState || hideMarkAllPlayed || iShowNewShows);	
 		}
 }