equal
deleted
inserted
replaced
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 } |