application/src/PodcastFeedView.cpp
branchRCL_3
changeset 312 2faae209e72b
parent 311 606f4f6babf6
child 313 0f30a75610de
equal deleted inserted replaced
311:606f4f6babf6 312:2faae209e72b
   164 	                                  const TDesC8& aCustomMessage)
   164 	                                  const TDesC8& aCustomMessage)
   165 	{
   165 	{
   166 	DP("CPodcastFeedView::DoActivateL BEGIN");
   166 	DP("CPodcastFeedView::DoActivateL BEGIN");
   167 	CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage);
   167 	CPodcastListView::DoActivateL(aPrevViewId, aCustomMessageId, aCustomMessage);
   168 	
   168 	
       
   169 	
       
   170 	UpdateListboxItemsL();		
       
   171 	UpdateToolbar();
       
   172 	
   169 	if (aPrevViewId.iViewUid == KUidPodcastShowsViewID)
   173 	if (aPrevViewId.iViewUid == KUidPodcastShowsViewID)
   170 		{
   174 		{
   171 		// back key from shows view
   175 		// back key from shows view
   172 		iViewingShows = EFalse;
   176 		iViewingShows = EFalse;
   173 		}
   177 		}
   174 	
   178 
   175 		UpdateListboxItemsL();		
   179 	// when we receive a UID argument, this comes from search view after
   176 		UpdateToolbar();
   180 	// a new feed has been added
   177 
   181 	if (aCustomMessageId.iUid != 0)
       
   182 		{
       
   183 		TUint feedUid = aCustomMessageId.iUid;
       
   184 		ShowItem(feedUid);
       
   185 		TBuf<KMaxMessageLength> message;
       
   186 		iEikonEnv->ReadResourceL(message, R_ADD_FEED_SUCCESS);
       
   187 		if(ShowQueryMessageL(message))
       
   188 			{
       
   189 			iPodcastModel.FeedEngine().UpdateFeedL(feedUid);
       
   190 			}
       
   191 		}
       
   192 		
   178 	if (iFirstActivateAfterLaunch)
   193 	if (iFirstActivateAfterLaunch)
   179 		{
   194 		{
   180 		iFirstActivateAfterLaunch = EFalse;
   195 		iFirstActivateAfterLaunch = EFalse;
   181 		}
   196 		}
   182 
   197