idlehomescreen/xmluirendering/uiengine/src/xnviewadapter.cpp
branchRCL_3
changeset 17 b8fae6b8a148
parent 12 9674c1a575e9
child 18 d05a55b217df
--- a/idlehomescreen/xmluirendering/uiengine/src/xnviewadapter.cpp	Mon Mar 15 12:39:47 2010 +0200
+++ b/idlehomescreen/xmluirendering/uiengine/src/xnviewadapter.cpp	Wed Mar 31 21:17:19 2010 +0300
@@ -56,8 +56,7 @@
 // Data types
 enum 
     {
-    EIsActivated,
-    EIsFirstActivation,
+    EIsActivated,    
     EIsInCall,
     EIsLightsOn,
     EIsForeground,    
@@ -240,9 +239,7 @@
     BaseConstructL();
     
     iTimer = CPeriodic::NewL( CActive::EPriorityIdle );
-    
-    iFlags.Set( EIsFirstActivation );
-    
+            
     // Base class CAknViewAppUi takes ownership of iViewAdapter
     iAppUiAdapter.AddViewL( this );    
     iAppUiAdapter.SetDefaultViewL( *this );
@@ -411,38 +408,21 @@
         sp->DrawNow();
         }
 
-    if ( iFlags.IsSet( EIsFirstActivation ) )
-        {                             
-        // Set the active container
-        ActivateContainerL( iAppUiAdapter.ViewManager().ActiveViewData() );
-        
-        __TICK( "CXnViewAdapter::DoActivateL - Calling UiActivated" );
-        __TIME_MARK( time2 );
+    // Set the active container
+    if ( aCustomMessage == KActivateDefaultView )
+        {
+        __PRINTS( "*** CXnViewAdapter::DoActivateL - activating default container" );
     
-        iFlags.Clear( EIsFirstActivation );
-        
-        iAppUiAdapter.UiActivated();
-        
-        __TIME_ENDMARK( "CXnViewAdapter::DoActivateL - Calling UiActivated", time );        
+        ActivateDefaultContainerL();
+    
+        iTimer->Cancel();
+        iTimer->Start( 1000, 1000, TCallBack( TimerCallback, this ) );
         }
     else
         {
-	    // Set the active container
-	    if ( aCustomMessage == KActivateDefaultView )
-	        {
-            __PRINTS( "*** CXnViewAdapter::DoActivateL - activating default container" );
-	    
-	        ActivateDefaultContainerL();
-        
-	        iTimer->Cancel();
-	        iTimer->Start( 1000, 1000, TCallBack( TimerCallback, this ) );
-	        }
-	    else
-	        {
-            __PRINTS( "*** CXnViewAdapter::DoActivateL - activating container" );
-	    
-	        ActivateContainerL( viewData );
-	        }
+        __PRINTS( "*** CXnViewAdapter::DoActivateL - activating container" );
+    
+        ActivateContainerL( viewData );
         }
 			  
     __TIME_ENDMARK( "CXnViewAdapter::DoActivateL, done", time );
@@ -506,11 +486,6 @@
 void CXnViewAdapter::ActivateContainerL( CXnViewData& aContainer, 
     TBool aEnterEditState )
     {   
-    if ( !iAppUiAdapter.ViewManager().UiStartupPhaseAllDone() )
-        {
-        return;
-        }            
-        
     if ( iContainer == &aContainer || iFlags.IsSet( EIsDestructionRunning ) )   
         {            
         return;