equal
deleted
inserted
replaced
252 TVcxMyVideosSortingOrder sortOrder = iModel.VideolistSortOrderL(); |
252 TVcxMyVideosSortingOrder sortOrder = iModel.VideolistSortOrderL(); |
253 iVideoArray->ResortVideoListL( sortOrder ); |
253 iVideoArray->ResortVideoListL( sortOrder ); |
254 |
254 |
255 TInt highlight = iScroller.SelectedIndex(); |
255 TInt highlight = iScroller.SelectedIndex(); |
256 |
256 |
257 // It is enough to reset scroll buffer only, not whole scroller |
257 iScroller.Reset(); |
258 iScroller.DisableScrollBuffer(); |
258 iScroller.ResizeL( iVideoArray->VideoCount() ); |
259 iScroller.EnableScrollBufferL( *this, KHgBufferSize, KHgBufferTreshold ); |
|
260 |
259 |
261 iScroller.SetSelectedIndex( highlight ); |
260 iScroller.SetSelectedIndex( highlight ); |
262 |
261 |
263 iView.DynInitMskL(); |
262 iView.DynInitMskL(); |
264 |
263 |
1361 { |
1360 { |
1362 IPTVLOGSTRING2_LOW_LEVEL( |
1361 IPTVLOGSTRING2_LOW_LEVEL( |
1363 "MPX My Videos UI # NewVideoListL(count=%d) - Enter", aVideoList.Count() ); |
1362 "MPX My Videos UI # NewVideoListL(count=%d) - Enter", aVideoList.Count() ); |
1364 |
1363 |
1365 ReplaceVideoArrayL( aVideoList ); |
1364 ReplaceVideoArrayL( aVideoList ); |
1366 |
1365 |
1367 if ( iVideoArray->VideoCount() > 0 ) |
1366 TInt videoCount = iVideoArray->VideoCount(); |
1368 { |
1367 if ( videoCount > 0 ) |
1369 iScroller.Reset(); |
1368 { |
1370 iScroller.ResizeL( iVideoArray->VideoCount() ); |
1369 if ( videoCount == iScroller.ItemCount() ) |
1371 |
1370 { |
|
1371 iScroller.DisableScrollBuffer(); |
|
1372 iScroller.EnableScrollBufferL( *this, KHgBufferSize, KHgBufferTreshold ); |
|
1373 } |
|
1374 else |
|
1375 { |
|
1376 iScroller.ResizeL( videoCount ); |
|
1377 } |
|
1378 |
1372 TInt highlight( KErrNotFound ); |
1379 TInt highlight( KErrNotFound ); |
1373 |
1380 |
1374 if ( iRestoreHighlightPosition ) |
1381 if ( iRestoreHighlightPosition ) |
1375 { |
1382 { |
1376 highlight = iVideoArray->IndexByMPXItemId( iHighlightedItemId ); |
1383 highlight = iVideoArray->IndexByMPXItemId( iHighlightedItemId ); |
1449 if ( aMpxItemId.iId1 == iCurrentCategoryIndex && |
1456 if ( aMpxItemId.iId1 == iCurrentCategoryIndex && |
1450 aMpxItemId.iId2 == 1 ) |
1457 aMpxItemId.iId2 == 1 ) |
1451 { |
1458 { |
1452 // Re-fetch current list completely, MMC card has |
1459 // Re-fetch current list completely, MMC card has |
1453 // removed or inserted. |
1460 // removed or inserted. |
1454 iModel.CollectionClient().GetVideoListL( KErrNotFound ); |
1461 iModel.CollectionClient().GetVideoListL( iCurrentCategoryIndex ); |
1455 } |
1462 } |
1456 } |
1463 } |
1457 else |
1464 else |
1458 { |
1465 { |
1459 TInt index = iVideoArray->IndexByMPXItemId( aMpxItemId ); |
1466 TInt index = iVideoArray->IndexByMPXItemId( aMpxItemId ); |