application/src/PodcastFeedView.cpp
changeset 49 43e204e6ae2e
parent 33 64ed1227e68d
child 50 e7b10d6d7ba3
equal deleted inserted replaced
48:f8fd68d71cfd 49:43e204e6ae2e
   173 void CPodcastFeedView::DoActivateL(const TVwsViewId& aPrevViewId,
   173 void CPodcastFeedView::DoActivateL(const TVwsViewId& aPrevViewId,
   174 	                                  TUid aCustomMessageId,
   174 	                                  TUid aCustomMessageId,
   175 	                                  const TDesC8& aCustomMessage)
   175 	                                  const TDesC8& aCustomMessage)
   176 	{
   176 	{
   177 	CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage);
   177 	CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage);
   178 
   178 	if (iFirstActivateAfterLaunch)
       
   179 		{
       
   180 		iFirstActivateAfterLaunch = EFalse;
       
   181 		}
       
   182 	
   179 	if (aPrevViewId.iViewUid == KUidPodcastShowsViewID)
   183 	if (aPrevViewId.iViewUid == KUidPodcastShowsViewID)
   180 		{
   184 		{
   181 		// back key from shows view
   185 		// back key from shows view
   182 		iViewingShows = EFalse;
   186 		iViewingShows = EFalse;
   183 		}
   187 		}
   184 	
   188 	
   185 	if (iViewingShows)
   189 	UpdateListboxItemsL();		
   186 		{
   190 	UpdateToolbar();
   187 		// go to shows view
       
   188 		AppUi()->ActivateLocalViewL(KUidPodcastShowsViewID,  TUid::Uid(0), KNullDesC8());
       
   189 		} 
       
   190 	else 
       
   191 		{
       
   192 		UpdateListboxItemsL();		
       
   193 		UpdateToolbar();
       
   194 
       
   195 		if (iFirstActivateAfterLaunch)
       
   196 			{
       
   197 			iFirstActivateAfterLaunch = EFalse;
       
   198 			}
       
   199 		}
       
   200 	}
   191 	}
   201 
   192 
   202 void CPodcastFeedView::DoDeactivate()
   193 void CPodcastFeedView::DoDeactivate()
   203 	{
   194 	{
   204 	iUpdater->StopUpdate();
   195 	iUpdater->StopUpdate();
   986 		iStylusPopupMenu->ShowMenu();
   977 		iStylusPopupMenu->ShowMenu();
   987 		iStylusPopupMenu->SetPosition(aPenEventLocation);
   978 		iStylusPopupMenu->SetPosition(aPenEventLocation);
   988     }
   979     }
   989 	DP("CPodcastListView::HandleLongTapEventL END");
   980 	DP("CPodcastListView::HandleLongTapEventL END");
   990 }
   981 }
       
   982 
       
   983 TBool CPodcastFeedView::ViewingShows()
       
   984 	{
       
   985 	return iViewingShows;
       
   986 	}