equal
deleted
inserted
replaced
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(); |