--- a/mpx/collectionframework/collectionutility/src/mpxcollectionopenutility.cpp Thu Aug 19 10:24:28 2010 +0300
+++ b/mpx/collectionframework/collectionutility/src/mpxcollectionopenutility.cpp Tue Aug 31 15:41:40 2010 +0300
@@ -221,8 +221,8 @@
EXPORT_C void CMPXCollectionOpenUtility::SetDirection( TDirection aDirection )
{
iFetchDirection = aDirection;
-
- if( iFetchStep == EFetchItems || iFetchStep == EFetchCommand )
+
+ if( iFetchStep == EFetchItems || iFetchStep == EFetchCommand || iFetchStep == EFetchCount )
{
TBool skipFirst = iFetchStep == EFetchCommand ? ETrue : EFalse;
@@ -602,10 +602,8 @@
MPX_DEBUG1("CMPXCollectionOpenUtility::DoHandleFetchItemsL <---" );
// Task is done, and compact the list
//
- TInt curOffset(0);
if( iIncrementalChunks.Count() )
{
- curOffset = iIncrementalChunks[0].iOffset;
iIncrementalChunks.Remove(0);
DoCompactTaskListL( aEntries );
}
@@ -651,12 +649,9 @@
iFetchStep = EFetchNone;
}
- // Callback to observer with some treshold to avoid over redrawing
- // Playlists need every handle open to update the path
+ // Callback to observer
//
- if( iObs &&
- (Abs<TInt>(aIndex-curOffset) < iFetchInfo.iSize ||
- iFirstOpen || iMode == KMcModePlaylist || complete ) )
+ if( iObs )
{
iFirstOpen = EFalse;
MPX_DEBUG1("CMPXCollectionOpenUtility::DoHandleFetchItemsL callback" );