application/src/PodcastFeedView.cpp
changeset 69 04c6ccce8e7e
parent 63 a8538f50e2ba
child 74 af6475fdf8d6
equal deleted inserted replaced
68:867fc277ffea 69:04c6ccce8e7e
   694 				// Update the title
   694 				// Update the title
   695 				if (info->Title().Compare(title) != 0)
   695 				if (info->Title().Compare(title) != 0)
   696 				{
   696 				{
   697 					info->SetTitleL(title);
   697 					info->SetTitleL(title);
   698 					info->SetCustomTitle();	
   698 					info->SetCustomTitle();	
   699 					iPodcastModel.FeedEngine().UpdateFeedL(info);
   699 					iPodcastModel.FeedEngine().UpdateFeedInfoL(info);
   700 					UpdateListboxItemsL();
   700 					UpdateListboxItemsL();
   701 				}
   701 				}
   702 			}
   702 			}
   703 		}
   703 		}
   704 		}
   704 		}
   953 
   953 
   954 void CPodcastFeedView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */)
   954 void CPodcastFeedView::HandleLongTapEventL( const TPoint& aPenEventLocation, const TPoint& /* aPenEventScreenLocation */)
   955 {
   955 {
   956 	DP("CPodcastListView::HandleLongTapEventL BEGIN");
   956 	DP("CPodcastListView::HandleLongTapEventL BEGIN");
   957 
   957 
   958 	if (iUpdatingAllRunning) {
       
   959 		return; // we don't allow feed manipulation while update is running
       
   960 	}
       
   961 
       
   962 	iListContainer->SetLongTapDetectedL(ETrue);
   958 	iListContainer->SetLongTapDetectedL(ETrue);
   963 
   959 
   964 	const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1
   960 	const TInt KListboxDefaultHeight = 19; // for some reason it returns 19 for an empty listbox in S^1
   965 	TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems(
   961 	TInt lbHeight = iListContainer->Listbox()->CalcHeightBasedOnNumOfItems(
   966 			iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight;
   962 			iListContainer->Listbox()->Model()->NumberOfItems()) - KListboxDefaultHeight;