Proper fix for bug 3875 RCL_3
authorSebastian Brannstrom <sebastianb@symbian.org>
Sun, 31 Oct 2010 14:40:31 +0000
branchRCL_3
changeset 323 0bd524909716
parent 322 a6fa81d2f884
child 324 b54ded4e23a3
Proper fix for bug 3875
application/inc/PodcastFeedView.h
application/src/PodcastFeedView.cpp
application/src/PodcastFeedViewUpdater.cpp
--- a/application/inc/PodcastFeedView.h	Sun Oct 31 14:24:15 2010 +0000
+++ b/application/inc/PodcastFeedView.h	Sun Oct 31 14:40:31 2010 +0000
@@ -39,6 +39,7 @@
         static CPodcastFeedView* NewLC(CPodcastModel& aPodcastModel);
         ~CPodcastFeedView();
         void UpdateItemL(TInt aIndex);
+        void UpdateItemsComplete();
 		void CheckResumeDownloadL();
 		void UpdateToolbar(TBool aVisible=ETrue);
 		TBool ViewingShows();
@@ -123,6 +124,7 @@
 		TOpmlState iOpmlState;
 		TBool iViewingShows;
 		RArray<TInt> iFeedIdForIconArray;
+		TBool iListingFirstTime;
 };
 
 #endif // PODCASTFEEDVIEWH
--- a/application/src/PodcastFeedView.cpp	Sun Oct 31 14:24:15 2010 +0000
+++ b/application/src/PodcastFeedView.cpp	Sun Oct 31 14:40:31 2010 +0000
@@ -159,12 +159,16 @@
 	//iListContainer->Listbox()->ItemDrawer()->SetPropertiesL(aIndex, itemProps);
 	// If item is visible, redraw it
 	if (iListContainer->Listbox()->TopItemIndex() <= aIndex
-			&& iListContainer->Listbox()->BottomItemIndex() >= aIndex)
+			&& iListContainer->Listbox()->BottomItemIndex() > aIndex)
 		{
 		iListContainer->Listbox()->DrawItem(aIndex);
 		}
 	}
 
+void CPodcastFeedView::UpdateItemsComplete()
+	{
+	}
+
 TUid CPodcastFeedView::Id() const
 	{
 	return KUidPodcastFeedViewID;
--- a/application/src/PodcastFeedViewUpdater.cpp	Sun Oct 31 14:24:15 2010 +0000
+++ b/application/src/PodcastFeedViewUpdater.cpp	Sun Oct 31 14:40:31 2010 +0000
@@ -73,6 +73,7 @@
 	else
 		{
 		StopUpdate();
+		iPodcastFeedView.UpdateItemsComplete();
 		}
 	}