menufw/menufwui/mmwidgets/src/mmlistboxview.cpp
branchRCL_3
changeset 35 3321d3e205b6
parent 34 5456b4e8b3a8
--- a/menufw/menufwui/mmwidgets/src/mmlistboxview.cpp	Wed Sep 01 12:32:46 2010 +0100
+++ b/menufw/menufwui/mmwidgets/src/mmlistboxview.cpp	Tue Sep 14 20:58:58 2010 +0300
@@ -12,7 +12,7 @@
 * Contributors:
 *
 * Description:
- *  Version     : %version: MM_55 % << Don't touch! Updated by Synergy at check-out.
+ *  Version     : %version: MM_56 % << Don't touch! Updated by Synergy at check-out.
  *
 */
 
@@ -81,6 +81,7 @@
 void CMmListBoxView::ConstructL ()
   {
   iPreviouslyDrawnCurrentItemIndex = KErrNotFound;
+  iListCommingFromBackground = EFalse;
   }
 
 // -----------------------------------------------------------------------------
@@ -247,8 +248,9 @@
     view->UpdateAverageItemHeight ();
 
     CMmListBoxModel* model = static_cast< CMmListBoxModel* > ( iModel );
-    if ( model && model->GetSuiteModel()
-            && !model->GetSuiteModel()->GetItemsOrder()->IsSuiteReadyToShow() )
+    if( model && model->GetSuiteModel()
+            && !model->GetSuiteModel()->GetItemsOrder()->IsSuiteReadyToShow()
+            && !GetListCommingFromBackground() )
         {
         return;
         }
@@ -630,4 +632,23 @@
     iScrollToItemDisabled = aDisable;
     }
 
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+TBool CMmListBoxView::GetListCommingFromBackground() const
+    {
+    return iListCommingFromBackground;
+    }
+
+// -----------------------------------------------------------------------------
+//
+// -----------------------------------------------------------------------------
+//
+void CMmListBoxView::SetListCommingFromBackground(
+        TBool aCommingFromBackground )
+    {
+    iListCommingFromBackground = aCommingFromBackground;
+    }
+
 // End of file