idlehomescreen/xmluirendering/uiengine/src/xnbackgroundmanager.cpp
branchRCL_3
changeset 32 f00a6757af32
parent 31 89165693e770
equal deleted inserted replaced
31:89165693e770 32:f00a6757af32
   780             CFbsBitmap* bitmap = viewData->WallpaperImage();
   780             CFbsBitmap* bitmap = viewData->WallpaperImage();
   781             if( path != KNullDesC && bitmap )
   781             if( path != KNullDesC && bitmap )
   782                 {
   782                 {
   783                 if ( !BaflUtils::FileExists( fs, path ) )
   783                 if ( !BaflUtils::FileExists( fs, path ) )
   784                     {
   784                     {
       
   785                     RemoveWallpaperFromCache( path, viewData );
   785                     viewData->SetWallpaperImage( NULL );
   786                     viewData->SetWallpaperImage( NULL );
   786                     if( viewData == &iViewManager.ActiveViewData() )
   787                     if( viewData == &iViewManager.ActiveViewData() )
   787                         {
   788                         {
   788                         drawingNeeded = ETrue;
   789                         drawingNeeded = ETrue;
   789                         }
   790                         }
   795         {
   796         {
   796         if( iBgImagePath && iBgImage )
   797         if( iBgImagePath && iBgImage )
   797             {
   798             {
   798             if ( !BaflUtils::FileExists( fs, *iBgImagePath ) )
   799             if ( !BaflUtils::FileExists( fs, *iBgImagePath ) )
   799                 {
   800                 {
       
   801                 RemoveWallpaperFromCache( *iBgImagePath );
   800                 delete iBgImage;
   802                 delete iBgImage;
   801                 iBgImage = NULL;
   803                 iBgImage = NULL;
   802                 drawingNeeded = ETrue;
   804                 drawingNeeded = ETrue;
   803                 }
   805                 }
   804             }
   806             }