diff -r 6ef40bf8fd34 -r 08459e712984 skins/AknSkins/srvsrc/AknsSrv.cpp --- a/skins/AknSkins/srvsrc/AknsSrv.cpp Wed Apr 14 17:02:13 2010 +0300 +++ b/skins/AknSkins/srvsrc/AknsSrv.cpp Tue Apr 27 17:41:10 2010 +0300 @@ -344,12 +344,12 @@ } // ----------------------------------------------------------------------------- -// CAknsSrv::NotifyBackupOperationEnd +// CAknsSrv::NotifyBackupOperationEndL // ----------------------------------------------------------------------------- // -void CAknsSrv::NotifyBackupOperationEnd() +void CAknsSrv::NotifyBackupOperationEndL() { - RestoreOldSkin(); + RestoreOldSkinL(); } // ----------------------------------------------------------------------------- @@ -579,10 +579,10 @@ } // ----------------------------------------------------------------------------- -// CAknsSrv::NotifyWallpaperTypeChange +// CAknsSrv::NotifyWallpaperTypeChangeL // ----------------------------------------------------------------------------- // -void CAknsSrv::NotifyWallpaperTypeChange() +void CAknsSrv::NotifyWallpaperTypeChangeL() { if ( iSlideSetObserver ) { @@ -598,7 +598,7 @@ // none if ( newtype == KAknsSkinSrvNoWallpaper ) { - WallpaperLost(); + WallpaperLostL(); } // normal else if ( newtype == KAknsSkinSrvImageWallpaper ) @@ -815,7 +815,7 @@ if ( !AknsSrvUtils::IsFile( iFsSession, *iWPFilename ) ) { iWPOnRemovableDrive = EFalse; - WallpaperLost(); + WallpaperLostL(); } }*/ } @@ -847,10 +847,10 @@ } // ----------------------------------------------------------------------------- -// CAknsSrv::NotifyUSBRemoval +// CAknsSrv::NotifyUSBRemovalL // ----------------------------------------------------------------------------- // -void CAknsSrv::NotifyUSBRemoval() +void CAknsSrv::NotifyUSBRemovalL() { if (!iUSBAttached) { @@ -858,7 +858,7 @@ } iUSBAttached = EFalse; - RestoreOldSkin(); + RestoreOldSkinL(); } // ----------------------------------------------------------------------------- @@ -890,10 +890,10 @@ } // ----------------------------------------------------------------------------- -// CAknsSrv::WallpaperLost +// CAknsSrv::WallpaperLostL // ----------------------------------------------------------------------------- // -void CAknsSrv::WallpaperLost() +void CAknsSrv::WallpaperLostL() { if ( iUSBAttached && iWPOnRemovableDrive ) { @@ -1369,13 +1369,6 @@ // ----------------------------------------------------------------------------- void CAknsSrv::StartAnimBackgroundL() { - if ( iSettings->TransitionFxState() == KMaxTInt ) - { - //Stop anim effects - iSettings->SetAnimBackgroundState( KMaxTInt ); - return; - } - const TUid KCRUidThemesVariation = { 0x102818EB }; const TUint32 KThemesLocalVariation = 0x00000001; @@ -1396,13 +1389,21 @@ ActiveSkinAnimBgSupportL() ) { - //Start anim effects - iSettings->SetAnimBackgroundState( 0 ); + if ( iAnimBgToBeRestored ) + { + //Restore anim effects + iSettings->SetAnimBackgroundState( 0 ); + iAnimBgToBeRestored = EFalse; + } } else { //Stop anim effects - iSettings->SetAnimBackgroundState( KMaxTInt ); + if ( iSettings->AnimBackgroundState() == KErrNone ) + { + iAnimBgToBeRestored = ETrue; + iSettings->SetAnimBackgroundState( KMaxTInt ); + } } } @@ -2358,10 +2359,10 @@ return; } // ----------------------------------------------------------------------------- -// CAknsSrv::FreeDecodedWallpaper +// CAknsSrv::FreeDecodedWallpaperL // ----------------------------------------------------------------------------- // -void CAknsSrv::FreeDecodedWallpaper( const RMessage2 aMessage ) +void CAknsSrv::FreeDecodedWallpaperL( const RMessage2 aMessage ) { TFileName filename; aMessage.ReadL( 0, filename ); @@ -2775,7 +2776,7 @@ // Reactive backup skin. // ----------------------------------------------------------------------------- // -void CAknsSrv::RestoreOldSkin() +void CAknsSrv::RestoreOldSkinL() { if (iOldSkin != KAknsNullPkgID) { @@ -2808,7 +2809,7 @@ else { iWPOnRemovableDrive = EFalse; - WallpaperLost(); + WallpaperLostL(); } } }