application/src/PodcastShowsView.cpp
changeset 28 7aa3544d8be3
parent 24 ca50ea154990
child 31 8a5ead064c4f
child 35 66c5303f3610
equal deleted inserted replaced
27:f21a29fc4769 28:7aa3544d8be3
   603 			}break;
   603 			}break;
   604 		default:
   604 		default:
   605 			CPodcastListView::HandleCommandL(aCommand);
   605 			CPodcastListView::HandleCommandL(aCommand);
   606 			break;
   606 			break;
   607 		}
   607 		}
       
   608 	iListContainer->SetLongTapDetected(EFalse);
       
   609 
   608 	UpdateToolbar();
   610 	UpdateToolbar();
   609 	}
   611 	}
   610 	
   612 	
   611 void CPodcastShowsView::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)
   613 void CPodcastShowsView::DynInitMenuPaneL(TInt aResourceId,CEikMenuPane* aMenuPane)
   612 {
   614 {
   734 }
   736 }
   735 
   737 
   736 void CPodcastShowsView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */)
   738 void CPodcastShowsView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */)
   737 {
   739 {
   738 	DP("CPodcastShowsView::HandleLongTapEventL BEGIN");
   740 	DP("CPodcastShowsView::HandleLongTapEventL BEGIN");
   739 	
   741 
       
   742 	iListContainer->SetLongTapDetected(ETrue);
       
   743 
   740 	const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1
   744 	const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1
   741 	TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems(
   745 	TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems(
   742 			iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight;
   746 			iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight;
   743 
   747 
   744     if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight)
   748     if(iStylusPopupMenu && aPenEventLocation.iY < lbHeight)