# HG changeset patch # User teknolog # Date 1267387789 0 # Node ID ae65906c4347a4c77f725b67858c88b365032544 # Parent ca50ea1549900133426f0ac782e434ecafde808e Added feature to show showsview on return from queue if previously showed showsview diff -r ca50ea154990 -r ae65906c4347 application/inc/PodcastFeedView.h --- 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 diff -r ca50ea154990 -r ae65906c4347 application/sis/podcatcher_udeb.sis Binary file application/sis/podcatcher_udeb.sis has changed diff -r ca50ea154990 -r ae65906c4347 application/sis/podcatcher_udeb_signed.sis Binary file application/sis/podcatcher_udeb_signed.sis has changed diff -r ca50ea154990 -r ae65906c4347 application/sis/podcatcher_urel.sis Binary file application/sis/podcatcher_urel.sis has changed diff -r ca50ea154990 -r ae65906c4347 application/sis/podcatcher_urel_signed.sis Binary file application/sis/podcatcher_urel_signed.sis has changed diff -r ca50ea154990 -r ae65906c4347 application/src/PodcastFeedView.cpp --- 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()); } }