diff -r 79859ed3eea9 -r 919f36ff910f widgets/widgetapp/src/WidgetUiAppUi.cpp --- a/widgets/widgetapp/src/WidgetUiAppUi.cpp Tue Aug 31 16:17:46 2010 +0300 +++ b/widgets/widgetapp/src/WidgetUiAppUi.cpp Wed Sep 01 12:28:30 2010 +0100 @@ -24,16 +24,16 @@ #include "widgetappdefs.rh" #include #include "WidgetUi.hrh" -#include +#include #include #include #include #include -#include +#include #include #ifdef BRDO_WRT_HS_FF -#include +#include #endif // EXTERNAL DATA STRUCTURES @@ -288,7 +288,7 @@ CAknViewAppUi::HandleResourceChangeL( aType ); if ( aType == KEikDynamicLayoutVariantSwitch && iWindowManager && iWindowManager->ActiveWindow()) { - iWindowManager->ActiveWindow()->Relayout(); + iWindowManager->ActiveWindow()->RelayoutL( aType ); } } @@ -304,6 +304,16 @@ if ( aEvent.Type() == KAknUidValueEndKeyCloseEvent ) { + +#ifdef BRDO_MULTITOUCH_ENABLED_FF + if( IsDisplayingDialog() ) + { + //Get the top dialog + CCoeControl* control = TopFocusedControl(); + delete control; + control = NULL; + } +#endif // Close the current active widget iWindowManager->CloseWindowsAsync(EFalse); return; @@ -378,7 +388,7 @@ { #ifdef OOM_WIDGET_CLOSEALL CloseAllWidgetsAndExit(); -#else if // OOM_WIDGET_CLOSEALL +#else //if OOM_WIDGET_CLOSEALL iWindowManager->HandleOOMEventL(iIsForeground); CloseAndExitIfNoneLeft(); #endif @@ -400,7 +410,22 @@ TApaTask task = taskList.FindApp( wapUid ); task.SendToBackground(); } - + + +// ----------------------------------------------------------------------------- +// CWidgetUiAppUi::SendAppToForeground +// force the application to the foreground +// +// ----------------------------------------------------------------------------- +// +void CWidgetUiAppUi::SendAppToForeground() + { + TApaTaskList taskList( CEikonEnv::Static()->WsSession() ); + TUid wapUid( TUid::Uid( KWidgetAppUid ) ); + TApaTask task = taskList.FindApp( wapUid ); + task.BringToForeground(); + } + // ----------------------------------------------------------------------------- // CWidgetUiAppUi::SetRotationSupport() // check to see if screen oriantation can be changed @@ -543,7 +568,7 @@ TUint32& aOperation ) { __UHEAP_MARK; - TUint32 version( -1 ); + TUint32 version( 0 ); TPtrC ptr( NULL, 0 ); RDesReadStream stream( aLine );