uifw/AvKon/src/aknemptycontrol.cpp
branchRCL_3
changeset 9 aabf2c525e0f
parent 0 2f259fa3e83a
child 55 aecbbf00d063
equal deleted inserted replaced
4:8ca85d2f0db7 9:aabf2c525e0f
    42 // ---------------------------------------------------------------------------
    42 // ---------------------------------------------------------------------------
    43 //
    43 //
    44 CAknEmptyControl::CAknEmptyControl()
    44 CAknEmptyControl::CAknEmptyControl()
    45 	{
    45 	{
    46 	AKNTASHOOK_ADD( this, "CAknEmptyControl" );
    46 	AKNTASHOOK_ADD( this, "CAknEmptyControl" );
    47     iIsActiveIdle = AknStatuspaneUtils::IsActiveIdle();
    47 //  iIsActiveIdle = AknStatuspaneUtils::IsActiveIdle();
       
    48 // Use interface of statuspane transparency instead of check if it is active idle
       
    49   iStatusPane = CEikStatusPaneBase::Current();	
    48     }
    50     }
    49 
    51 
    50 
    52 
    51 // ---------------------------------------------------------------------------
    53 // ---------------------------------------------------------------------------
    52 // Destructor
    54 // Destructor
   104 // CAknEmptyControl::Draw
   106 // CAknEmptyControl::Draw
   105 // (other items were commented in a header).
   107 // (other items were commented in a header).
   106 // ---------------------------------------------------------------------------
   108 // ---------------------------------------------------------------------------
   107 //
   109 //
   108 void CAknEmptyControl::Draw( const TRect& /*aRect*/ ) const
   110 void CAknEmptyControl::Draw( const TRect& /*aRect*/ ) const
   109     {
   111     {      
   110     if ( iIsActiveIdle )
   112     if ( iStatusPane && iStatusPane->IsTransparent() )
   111         {
   113         {
   112         return;
   114         return;
   113         }
   115         }
   114 
   116 
   115     MAknsSkinInstance* skin = AknsUtils::SkinInstance();
   117     MAknsSkinInstance* skin = AknsUtils::SkinInstance();