diff -r 2f259fa3e83a -r 8ca85d2f0db7 uifw/AvKon/src/aknbattery.cpp --- a/uifw/AvKon/src/aknbattery.cpp Tue Feb 02 01:00:49 2010 +0200 +++ b/uifw/AvKon/src/aknbattery.cpp Fri Feb 19 23:04:46 2010 +0200 @@ -352,17 +352,23 @@ return; } - if ( AknStatuspaneUtils::StaconPaneActive() ) - { - DrawInStaconPane( Rect() ); - } - else if ( AknStatuspaneUtils::FlatLayoutActive() ) + // Don't allow normal background drawing if + // background is already drawn with a background drawer. + const MCoeControlBackground* backgroundDrawer = FindBackground(); + if ( !backgroundDrawer ) { - DrawInFlatStatusPane( Rect() ); - } - else - { - DrawInNormalStatusPane( Rect() ); + if ( AknStatuspaneUtils::StaconPaneActive() ) + { + DrawInStaconPane( Rect() ); + } + else if ( AknStatuspaneUtils::FlatLayoutActive() ) + { + DrawInFlatStatusPane( Rect() ); + } + else + { + DrawInNormalStatusPane( Rect() ); + } } }