Added feature to show showsview on return from queue if previously showed showsview
authorteknolog
Sun, 28 Feb 2010 20:09:49 +0000
changeset 25 ae65906c4347
parent 24 ca50ea154990
child 26 71493655568a
Added feature to show showsview on return from queue if previously showed showsview
application/inc/PodcastFeedView.h
application/sis/podcatcher_udeb.sis
application/sis/podcatcher_udeb_signed.sis
application/sis/podcatcher_urel.sis
application/sis/podcatcher_urel_signed.sis
application/src/PodcastFeedView.cpp
--- a/application/inc/PodcastFeedView.h	Sun Feb 28 19:35:33 2010 +0000
+++ b/application/inc/PodcastFeedView.h	Sun Feb 28 20:09:49 2010 +0000
@@ -117,6 +117,7 @@
 		CPodcastFeedViewUpdater* iUpdater;
 		TBool iFirstActivateAfterLaunch;
 		TOpmlState iOpmlState;
+		TBool iViewingShows;
 };
 
 #endif // PODCASTFEEDVIEWH
Binary file application/sis/podcatcher_udeb.sis has changed
Binary file application/sis/podcatcher_udeb_signed.sis has changed
Binary file application/sis/podcatcher_urel.sis has changed
Binary file application/sis/podcatcher_urel_signed.sis has changed
--- a/application/src/PodcastFeedView.cpp	Sun Feb 28 19:35:33 2010 +0000
+++ b/application/src/PodcastFeedView.cpp	Sun Feb 28 20:09:49 2010 +0000
@@ -174,13 +174,27 @@
 	                                  TUid aCustomMessageId,
 	                                  const TDesC8& aCustomMessage)
 	{
-	UpdateToolbar();
-	
 	CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage);
 
-	if (iFirstActivateAfterLaunch)
+	if (aPrevViewId.iViewUid == KUidPodcastShowsViewID)
+		{
+		// back key from shows view
+		iViewingShows = EFalse;
+		}
+	
+	if (iViewingShows)
 		{
-		iFirstActivateAfterLaunch = EFalse;
+		// go to shows view
+		AppUi()->ActivateLocalViewL(KUidPodcastShowsViewID,  TUid::Uid(0), KNullDesC8());
+		} 
+	else 
+		{
+		UpdateToolbar();
+
+		if (iFirstActivateAfterLaunch)
+			{
+			iFirstActivateAfterLaunch = EFalse;
+			}
 		}
 	}
 
@@ -212,7 +226,7 @@
 				{
 				iPodcastModel.ActiveShowList().Reset();
 				iPodcastModel.SetActiveFeedInfo((*sortedItems)[index]);			
-
+				iViewingShows = ETrue;
 				AppUi()->ActivateLocalViewL(KUidPodcastShowsViewID,  TUid::Uid(0), KNullDesC8());
 				}
 			}