videocollection/hgmyvideos/src/vcxhgmyvideosvideomodelhandler.cpp
branchRCL_3
changeset 13 112a725ff2c2
parent 11 5294c000a26d
child 16 7f2b2a65da29
--- a/videocollection/hgmyvideos/src/vcxhgmyvideosvideomodelhandler.cpp	Mon Mar 15 12:40:47 2010 +0200
+++ b/videocollection/hgmyvideos/src/vcxhgmyvideosvideomodelhandler.cpp	Wed Mar 31 21:34:36 2010 +0300
@@ -461,9 +461,9 @@
 // CVcxHgMyVideosVideoModelHandler::GetVideoName()
 // -----------------------------------------------------------------------------
 //
-const TDesC& CVcxHgMyVideosVideoModelHandler::GetVideoName( TInt aIndex )
+const TDesC& CVcxHgMyVideosVideoModelHandler::GetVideoName( TInt aId )
     {
-    CMPXMedia* media = iVideoArray->MPXMedia( aIndex );
+    CMPXMedia* media = iVideoArray->MPXMediaByMPXItemId( TMPXItemId( aId, 0 ) );
 
     if ( media && media->IsSupported( KMPXMediaGeneralTitle ) )
         {
@@ -1193,15 +1193,7 @@
     TInt videoCount = iVideoArray->VideoCount();         
     if (  videoCount > 0 )
         {
-        if ( videoCount == iScroller.ItemCount() )
-	        {
-            iScroller.DisableScrollBuffer();
-            iScroller.EnableScrollBufferL( *this, KHgBufferSize, KHgBufferTreshold );
-            }
-        else
-	        {
-            ResizeScrollerL( iVideoArray->VideoCount() );
-            }
+        ResizeScrollerL( videoCount );
             		
         TInt highlight( KErrNotFound );
 		
@@ -1285,6 +1277,7 @@
                     {                    
                     // Re-fetch current list completely, MMC card has 
                     // removed or inserted.
+                    IPTVLOGSTRING_LOW_LEVEL( "MPX My Videos UI # VideoModifiedL - Re-fetching list" );
                     iModel.CollectionClient().GetVideoListL( iCurrentCategoryIndex );
                     }
                 }