41 #include "aknViewAppUi.h" |
45 #include "aknViewAppUi.h" |
42 |
46 |
43 // CONSTANTS |
47 // CONSTANTS |
44 const TInt KAknAppUiViewsGranularity = 1; |
48 const TInt KAknAppUiViewsGranularity = 1; |
45 const TInt KAknViewAsyncPriority = EActivePriorityRedrawEvents + 10; |
49 const TInt KAknViewAsyncPriority = EActivePriorityRedrawEvents + 10; |
|
50 const TUid KCRUidThemes = { 0x102818E8 }; // defined in pslninternalcrkeys.h |
|
51 const TUint32 KThemesTransitionEffects = 0x00000009; //defined in pslninternalcrkeys.h |
|
52 |
|
53 |
46 #ifdef RD_SPLIT_VIEW |
54 #ifdef RD_SPLIT_VIEW |
47 const TInt KAknSplitViewSize = 2; |
55 const TInt KAknSplitViewSize = 2; |
48 |
56 |
49 // MODULE DATA STRUCTURES |
57 // MODULE DATA STRUCTURES |
50 enum TAknViewAppUiFlags |
58 enum TAknViewAppUiFlags |
227 #ifdef RD_SPLIT_VIEW |
235 #ifdef RD_SPLIT_VIEW |
228 iExtension->iNavigator = new ( ELeave ) CAknViewNavigator( this ); |
236 iExtension->iNavigator = new ( ELeave ) CAknViewNavigator( this ); |
229 AddToStackL( iExtension->iNavigator, ECoeStackPriorityDefault - 1, ECoeStackFlagRefusesFocus ); |
237 AddToStackL( iExtension->iNavigator, ECoeStackPriorityDefault - 1, ECoeStackFlagRefusesFocus ); |
230 #endif // RD_SPLIT_VIEW |
238 #endif // RD_SPLIT_VIEW |
231 |
239 |
|
240 |
|
241 // disable CAknLocalScreenClearer when fullscreen effect is on |
|
242 CRepository *uiThemeCenRep = CRepository::NewL( KCRUidThemes ); |
|
243 CleanupStack::PushL( uiThemeCenRep ); |
|
244 TInt effectValue = 0; |
|
245 TBool themeEffectDisabled = ETrue; |
|
246 if ( KErrNone == uiThemeCenRep->Get( KThemesTransitionEffects, effectValue ) ) |
|
247 { |
|
248 themeEffectDisabled = effectValue & AknTransEffect::EFullScreenTransitionsOff; |
|
249 } |
|
250 |
232 if ( iEikonEnv->RootWin().OrdinalPosition() == 0 && // only clear the window for foreground apps |
251 if ( iEikonEnv->RootWin().OrdinalPosition() == 0 && // only clear the window for foreground apps |
233 iExtension->iUseDefaultScreenClearer ) |
252 iExtension->iUseDefaultScreenClearer && themeEffectDisabled ) |
234 { |
253 { |
235 iClearer = CAknLocalScreenClearer::NewL( ETrue ); |
254 iClearer = CAknLocalScreenClearer::NewL( ETrue ); |
236 } |
255 } |
|
256 |
|
257 CleanupStack::PopAndDestroy( uiThemeCenRep ); // uiThemeCenRep |
|
258 |
237 } |
259 } |
238 |
260 |
239 // ----------------------------------------------------------------------------- |
261 // ----------------------------------------------------------------------------- |
240 // CAknViewAppUi::~CAknViewAppUi |
262 // CAknViewAppUi::~CAknViewAppUi |
241 // Destructor. |
263 // Destructor. |