equal
deleted
inserted
replaced
75 #include "transitionmanager.h" |
75 #include "transitionmanager.h" |
76 #include <PtiEngine.h> |
76 #include <PtiEngine.h> |
77 #include <PtiKeyMappings.h> |
77 #include <PtiKeyMappings.h> |
78 |
78 |
79 #include <akntoolbar.h> |
79 #include <akntoolbar.h> |
|
80 #include <akntoolbarextension.h> |
80 #include <eikdialg.h> |
81 #include <eikdialg.h> |
81 |
82 |
82 #ifdef RD_SCALABLE_UI_V2 |
83 #ifdef RD_SCALABLE_UI_V2 |
83 #include <AknPriv.hrh> |
84 #include <AknPriv.hrh> |
84 #include <akntouchpane.h> |
85 #include <akntouchpane.h> |
1813 iAvkonEnv->CloseAllIntermediateStates(); |
1814 iAvkonEnv->CloseAllIntermediateStates(); |
1814 } |
1815 } |
1815 |
1816 |
1816 EXPORT_C void CAknAppUi::PrepareToExit() |
1817 EXPORT_C void CAknAppUi::PrepareToExit() |
1817 { |
1818 { |
1818 // Hide application toolbar to prevent it from showing |
1819 // |
1819 // after views are deleted |
1820 // Hide application toolbar extension view (by toolbar extension) |
|
1821 // |
1820 if ( CurrentFixedToolbar() ) |
1822 if ( CurrentFixedToolbar() ) |
1821 { |
1823 { |
1822 CurrentFixedToolbar()->SetToolbarVisibility( EFalse ); |
1824 CAknToolbarExtension* toolbarExt = CurrentFixedToolbar()->ToolbarExtension(); |
1823 } |
1825 if ( toolbarExt && toolbarExt->IsShown() ) |
|
1826 { |
|
1827 toolbarExt->SetShown( EFalse ); |
|
1828 } |
|
1829 } |
|
1830 |
1824 if( IsForeground() && Document() ) |
1831 if( IsForeground() && Document() ) |
1825 { |
1832 { |
1826 //only if focused, otherwise next app HandleForeground may never come. |
1833 //only if focused, otherwise next app HandleForeground may never come. |
1827 iAvkonEnv->TransitionEvent(AknTransEffect::EApplicationExit, Application()->AppDllUid()); |
1834 iAvkonEnv->TransitionEvent(AknTransEffect::EApplicationExit, Application()->AppDllUid()); |
1828 } |
1835 } |