application/src/PodcastListView.cpp
changeset 26 71493655568a
parent 24 ca50ea154990
child 27 f21a29fc4769
--- a/application/src/PodcastListView.cpp	Sun Feb 28 20:09:49 2010 +0000
+++ b/application/src/PodcastListView.cpp	Sun Feb 28 21:19:40 2010 +0000
@@ -100,6 +100,11 @@
         }
     }
 
+void CPodcastListContainer::SetLongTapDetected(TBool aLongTapDetected)
+	{
+	iLongTapDetected = aLongTapDetected;
+	}
+
 void CPodcastListContainer::HandleResourceChange(TInt aType)
 {
 	switch( aType )
@@ -161,8 +166,11 @@
 	if (iPointerListener)
 		iPointerListener->PointerEventL(aPointerEvent);
 
-	// Call base class HandlePointerEventL()
-	CCoeControl::HandlePointerEventL(aPointerEvent);
+	// Call base class HandlePointerEventL() if not a long tap
+	if (!iLongTapDetected)
+		{
+		CCoeControl::HandlePointerEventL(aPointerEvent);
+		}
 	}
 
 
@@ -362,7 +370,7 @@
 void CPodcastListView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */)
 {
 	DP("CPodcastListView::HandleLongTapEventL BEGIN");
-	
+	iListContainer->SetLongTapDetected(ETrue);
 	const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1
 	TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems(
 			iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight;