application/src/PodcastShowsView.cpp
changeset 4 be243543a361
parent 3 3326ac3c89fa
child 5 ba42cd6670b8
equal deleted inserted replaced
3:3326ac3c89fa 4:be243543a361
   794 
   794 
   795 void CPodcastShowsView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */)
   795 void CPodcastShowsView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */)
   796 {
   796 {
   797 	DP("CPodcastShowsView::HandleLongTapEventL BEGIN");
   797 	DP("CPodcastShowsView::HandleLongTapEventL BEGIN");
   798 	
   798 	
   799     if(iStylusPopupMenu)
   799 	const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1
       
   800 	TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems(
       
   801 			iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight;
       
   802 
       
   803     if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight)
   800     {
   804     {
   801 		TInt index = iListContainer->Listbox()->CurrentItemIndex();
   805 		TInt index = iListContainer->Listbox()->CurrentItemIndex();
   802 		if (index >= 0 && index < iPodcastModel.ActiveShowList().Count())
   806 		if (index >= 0 && index < iPodcastModel.ActiveShowList().Count())
   803 			{
   807 			{
   804 			CShowInfo *info = iPodcastModel.ActiveShowList()[index];
   808 			CShowInfo *info = iPodcastModel.ActiveShowList()[index];