mmsharing/mmshui/src/musuigeneralview.cpp
branchRCL_3
changeset 24 407431f36921
parent 21 ce86b6d44a6d
--- a/mmsharing/mmshui/src/musuigeneralview.cpp	Wed Jun 09 09:37:52 2010 +0300
+++ b/mmsharing/mmshui/src/musuigeneralview.cpp	Mon Jun 21 15:36:50 2010 +0300
@@ -893,8 +893,34 @@
     if ( iBackgroundContainer )
         {
         iBackgroundContainer->UpdateOrdinalPositionValue( aUp );              
-        }    
+        }
     }
+
+// -----------------------------------------------------------------------------
+// Do refresh for background container only if display is disabled.
+// Refreshing if display is enabled would cause bg container
+// to draw itself on top of display area, making it invisible.
+// -----------------------------------------------------------------------------
+//
+void CMusUiGeneralView::RefreshBackgroundContainer()
+    {
+    if ( !iBackgroundContainer )
+        {
+        return;
+        }  
+    TBool displayEnabled( EFalse );
+    if ( EventController() )
+        {
+        TRAP_IGNORE( displayEnabled = EventController()->IsDisplayEnabledL() )
+        }
+
+    if ( !displayEnabled )
+        {
+        MUS_LOG( "mus: [MUSUI ] <-> CMusUiGeneralView::RefreshBackgroundContainer()" )
+        iBackgroundContainer->SetRect( ClientRect() );
+        }
+    }
+
 // end of file