calendarui/controller/src/calenstate.cpp
branchRCL_3
changeset 13 1984aceb8774
parent 0 f979ecb2b13e
child 29 12af337248b1
equal deleted inserted replaced
11:0f07cd1b5772 13:1984aceb8774
   126     switch( aNotification )
   126     switch( aNotification )
   127         {
   127         {
   128         case ECalenNotifyAppBackgrounded:
   128         case ECalenNotifyAppBackgrounded:
   129         	{
   129         	{
   130         	CCalenStateMachine::TCalenStateIndex cachedState = aStateMachine.GetCurrentState();
   130         	CCalenStateMachine::TCalenStateIndex cachedState = aStateMachine.GetCurrentState();
   131         	if(cachedState != CCalenStateMachine::ECalenMapState) // Never send calendar to background state in MapState as maps will 
   131         	// Never send calendar to background state in MapState as maps will
   132         	                                                        // launched in cahin mode not in stand alone mode
   132         	// launched in cahin mode not in stand alone mode
   133         	    {
   133         	if((cachedState != CCalenStateMachine::ECalenMapState) &&
       
   134         		(cachedState != CCalenStateMachine::ECalenPopulationState))
       
   135         		{
   134                 aStateMachine.SetCurrentState(CCalenStateMachine::ECalenBackgroundState);
   136                 aStateMachine.SetCurrentState(CCalenStateMachine::ECalenBackgroundState);
   135                 aStateMachine.SetCurrentPreviousState(cachedState);
   137                 aStateMachine.SetCurrentPreviousState(cachedState);
   136                 iOutstandingNotifications.InsertL(aNotification);
   138                 iOutstandingNotifications.InsertL(aNotification);
   137                 aStateMachine.ActivateCurrentStateL();
   139                 aStateMachine.ActivateCurrentStateL();
   138         	    }
   140         	    }