uifw/AvKon/src/AknViewAppUi.cpp
branchRCL_3
changeset 29 a8834a2e9a96
parent 25 941195f2d488
child 38 c52421ed5f07
equal deleted inserted replaced
25:941195f2d488 29:a8834a2e9a96
     1 /*
     1 /*
     2 * Copyright (c) 2002-2005 Nokia Corporation and/or its subsidiary(-ies).
     2 * Copyright (c) 2002-2010 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3 * All rights reserved.
     4 * This component and the accompanying materials are made available
     4 * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5 * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6 * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
   233 #ifdef RD_SPLIT_VIEW
   233 #ifdef RD_SPLIT_VIEW
   234 	iExtension->iNavigator = new ( ELeave ) CAknViewNavigator( this );
   234 	iExtension->iNavigator = new ( ELeave ) CAknViewNavigator( this );
   235 	AddToStackL( iExtension->iNavigator, ECoeStackPriorityDefault - 1, ECoeStackFlagRefusesFocus );
   235 	AddToStackL( iExtension->iNavigator, ECoeStackPriorityDefault - 1, ECoeStackFlagRefusesFocus );
   236 #endif // RD_SPLIT_VIEW
   236 #endif // RD_SPLIT_VIEW
   237 
   237 
   238 	if ( iEikonEnv->RootWin().OrdinalPosition() == 0 && // only clear the window for foreground apps
   238 	// Only clear the window for foreground apps.
       
   239 	if ( iEikonEnv->RootWin().OrdinalPosition() == 0 &&
   239 	     iExtension->iUseDefaultScreenClearer )
   240 	     iExtension->iUseDefaultScreenClearer )
   240 		{
   241         {
   241 		iClearer = CAknLocalScreenClearer::NewL( ETrue );
   242 	    if ( !iEikonEnv->StartedAsServerApp() )
   242 		}
   243             {
       
   244             iClearer = CAknLocalScreenClearer::NewL( ETrue );
       
   245             }
       
   246         else
       
   247             {
       
   248             iClearer = CAknLocalScreenClearer::NewL( ETrue, ETrue );
       
   249             }
       
   250         }
   243 	}
   251 	}
   244 
   252 
   245 // -----------------------------------------------------------------------------
   253 // -----------------------------------------------------------------------------
   246 // CAknViewAppUi::~CAknViewAppUi
   254 // CAknViewAppUi::~CAknViewAppUi
   247 // Destructor.
   255 // Destructor.