--- a/calendarui/views/src/calennativeview.cpp Sun Jun 20 22:50:42 2010 +0200
+++ b/calendarui/views/src/calennativeview.cpp Sun Jun 20 22:55:39 2010 +0200
@@ -707,6 +707,7 @@
notificationArray.Append(ECalenNotifyStopAlarm);
notificationArray.Append(ECalenNotifyDeleteFailed);
notificationArray.Append(ECalenNotifyEntryDeleted);
+ notificationArray.Append(ECalenNotifyResourceChanged);
iServices.RegisterForNotificationsL( this,notificationArray);
@@ -797,17 +798,7 @@
DoDeactivate();
}
- if (!iNaviContainer)
- {
- CEikStatusPane* sp = StatusPane();
- iNaviContainer =
- static_cast<CAknNavigationControlContainer*>(
- sp->ControlL(TUid::Uid(EEikStatusPaneUidNavi)));
- }
-
- iNaviContainer->Pop();
-
- if( AknLayoutUtils::PenEnabled() )
+ if( AknLayoutUtils::PenEnabled() )
{
MCalenToolbar* toolbarImpl = iServices.ToolbarOrNull();
if(toolbarImpl)
@@ -1174,6 +1165,19 @@
}
}
break;
+ case ECalenNotifyResourceChanged:
+ {
+ if(iContainer )
+ {
+ CAknAppUi* Appui = (CAknAppUi*)CEikonEnv::Static()->EikAppUi();
+ //handle this event when the app is in background
+ if(!Appui->IsForeground())
+ {
+ iContainer->HandleResourceChange(KEikDynamicLayoutVariantSwitch);
+ }
+ }
+ }
+ break;
default:
ASSERT( 0 ); // should never get here
break;