diff -r 5b238bc8ffb6 -r 01504893d9cb photosgallery/viewframework/views/gridview/src/glxgridviewcontainer.cpp --- a/photosgallery/viewframework/views/gridview/src/glxgridviewcontainer.cpp Wed Sep 15 12:13:06 2010 +0300 +++ b/photosgallery/viewframework/views/gridview/src/glxgridviewcontainer.cpp Wed Oct 13 14:32:09 2010 +0300 @@ -44,6 +44,9 @@ #include "glxgridviewimp.h" #include "glxgridviewmlobserver.h" // medialist observer for Hg Grid +const TInt KNoOfPages(3); +const TInt KBufferTresholdSize(3); // in rows + // ======== MEMBER FUNCTIONS ======== // --------------------------------------------------------------------------- @@ -340,7 +343,7 @@ { TRACER("CGlxGridViewContainer::HandleOpenL()"); // Make sure that the Selection Index is inside medialist count - if (!iIsDialogLaunched && aIndex Count() && aIndex >=0) + if (aIndex Count() && aIndex >=0) { if (!(iHgGrid->Flags() && CHgScroller::EHgScrollerSelectionMode)) { @@ -523,8 +526,7 @@ { TRACER("CGlxGridViewContainer::CreateGridMediaListObserverL()"); // Creating the Medialist observer for HG Grid - iGlxGridMLObserver = CGlxGridViewMLObserver::NewL(*this, *iMediaList, - iHgGrid); + iGlxGridMLObserver = CGlxGridViewMLObserver::NewL(*iMediaList, iHgGrid); } // --------------------------------------------------------------------------- @@ -960,17 +962,6 @@ iIsDialogLaunched = ETrue; break; } - case EGlxCmdDialogDismissed: - { - if (iIsDialogLaunched && iIsMMCRemoved) - { - iGlxGridViewObserver.HandleGridEventsL(EAknSoftkeyExit); - } - - iIsDialogLaunched = EFalse; - retVal = ETrue; - break; - } default: break; }