ipsservices/ipssossettings/src/ipssetview.cpp
branchRCL_3
changeset 16 4ce476e64c59
parent 13 0396474f30f5
child 26 67369d1b217f
--- a/ipsservices/ipssossettings/src/ipssetview.cpp	Mon Mar 15 12:39:10 2010 +0200
+++ b/ipsservices/ipssossettings/src/ipssetview.cpp	Wed Mar 31 21:08:33 2010 +0300
@@ -20,6 +20,7 @@
 #include <ecom/implementationproxy.h>
 #include <msvstd.h>
 #include <aknViewAppUi.h>
+#include <aknclearer.h>
 //<cmail>
 #include "FreestyleEmailUiConstants.h"
 //</cmail>
@@ -65,6 +66,11 @@
     FUNC_LOG;
     delete iAsyncCallback;
     delete iCustomMessage;
+    if (iLocalScreenClearer != NULL)
+        {
+        delete iLocalScreenClearer;
+        iLocalScreenClearer = NULL;
+        }
     }
 
 // Constructor
@@ -90,11 +96,17 @@
     iCustomMessage = NULL;
     iCustomMessage = aCustomMessage.AllocL();
     iAsyncCallback->CallBack();
+    iLocalScreenClearer = CAknLocalScreenClearer::NewL( EFalse );
     }
 
 void CIpsSetView::DoDeactivate()
     {
     FUNC_LOG;
+    if (iLocalScreenClearer != NULL)
+        {
+        delete iLocalScreenClearer;
+        iLocalScreenClearer = NULL;
+        }
     }
 
 TPtrC CIpsSetView::MailSettingsSubviewCaption(
@@ -184,6 +196,9 @@
         }
     else
         {
+        //refresh background
+        self->iLocalScreenClearer->DrawNow();
+        
     	//check if composer is active view; needed to handle special case when email is plugin settings and composer is activated externaly
     	TVwsViewId aViewId;
     	self->AppUi()->GetActiveViewId(aViewId);