Fix for 2608 - Title is sometimes not reset to "Podcatcher" after leaving ShowsView
authorSebastian Brannstrom <sebastianb@symbian.org>
Wed, 07 Jul 2010 20:22:34 +0100
changeset 115 d886725e4499
parent 114 f94dbd678dda
child 116 9d3b805af5ab
Fix for 2608 - Title is sometimes not reset to "Podcatcher" after leaving ShowsView
application/src/PodcastShowsView.cpp
engine/src/ShowEngine.cpp
--- a/application/src/PodcastShowsView.cpp	Wed Jul 07 14:10:58 2010 +0100
+++ b/application/src/PodcastShowsView.cpp	Wed Jul 07 20:22:34 2010 +0100
@@ -297,10 +297,9 @@
 void CPodcastShowsView::FeedDownloadFinishedL(TFeedState /*aState*/, TUint aFeedUid, TInt /*aError*/)
 	{
 	DP("CPodcastShowsView::FeedDownloadFinishedL BEGIN");
-	// TODO make use of the fact that we know that the feed download is
-	// finished instead of checking feed engine states in UpdateFeedUpdateStateL.
-	if (iPodcastModel.ActiveFeedInfo() != NULL
-			&& iPodcastModel.ActiveFeedInfo()->Uid() == aFeedUid)
+	if (iListContainer->IsVisible() &&
+			iPodcastModel.ActiveFeedInfo() != NULL &&
+			iPodcastModel.ActiveFeedInfo()->Uid() == aFeedUid)
 		{
 		UpdateFeedUpdateStateL();
 		UpdateViewTitleL();
--- a/engine/src/ShowEngine.cpp	Wed Jul 07 14:10:58 2010 +0100
+++ b/engine/src/ShowEngine.cpp	Wed Jul 07 20:22:34 2010 +0100
@@ -1552,4 +1552,4 @@
 		{
 		User::Leave(KErrCorrupt);
 		}
-	}
\ No newline at end of file
+	}