application/src/PodcastShowsView.cpp
branchRCL_3
changeset 376 31968c23152c
parent 368 b131f7696342
child 383 931d0db6374d
equal deleted inserted replaced
370:83825edad8e1 376:31968c23152c
   881 			// and mark as played, and not downloaded
   881 			// and mark as played, and not downloaded
   882 			
   882 			
   883 			info->SetDownloadState(ENotDownloaded);
   883 			info->SetDownloadState(ENotDownloaded);
   884 			info->SetPlayState(EPlayed);
   884 			info->SetPlayState(EPlayed);
   885 			iPodcastModel.ShowEngine().UpdateShowL(*info);
   885 			iPodcastModel.ShowEngine().UpdateShowL(*info);
   886 			
   886 		
   887 			UpdateShowItemDataL(iPodcastModel.ActiveShowList()[index], index, 0);
   887 			if (iShowNewShows)
   888 			iListContainer->Listbox()->DrawItem(index);					
   888 				{
       
   889 				UpdateListboxItemsL();
       
   890 
       
   891 				if (index > 0)
       
   892 					{
       
   893 					iListContainer->Listbox()->SetCurrentItemIndex(index - 1);
       
   894 					}
       
   895 				}
       
   896 			else
       
   897 				{
       
   898 				UpdateShowItemDataL(iPodcastModel.ActiveShowList()[index], index, 0);
       
   899 				iListContainer->Listbox()->DrawItem(index);
       
   900 				}
   889 			}
   901 			}
   890 		}
   902 		}
   891 	}
   903 	}
   892 
   904 
   893 void CPodcastShowsView::DownloadQueueUpdatedL(TInt aDownloadingShows, TInt aQueuedShows)
   905 void CPodcastShowsView::DownloadQueueUpdatedL(TInt aDownloadingShows, TInt aQueuedShows)