diff -r 8871b09be73b -r 24062c24fe38 phoneapp/phoneuicontrol/src/cphonestateidle.cpp --- a/phoneapp/phoneuicontrol/src/cphonestateidle.cpp Fri Feb 19 22:50:26 2010 +0200 +++ b/phoneapp/phoneuicontrol/src/cphonestateidle.cpp Fri Mar 12 15:42:40 2010 +0200 @@ -358,7 +358,7 @@ // Show the number entry if it exists SetNumberEntryVisibilityL(ETrue); } - else if ( NeedToSendToBackgroundL() ) + else if ( NeedToReturnToForegroundAppL() ) { // Continue displaying current app but set up the // idle screen in the background @@ -763,12 +763,12 @@ // Capture keys when there is an incoming call CaptureKeysDuringCallNotificationL( ETrue ); - // Indicate that the Phone needs to be sent to the background if - // an application other than the top application is in the foreground + // Indicate that the Foreground application needs to be sent to the foreground + // after call is ended. TPhoneCmdParamBoolean booleanParam; booleanParam.SetBoolean( !TopAppIsDisplayedL() ); iViewCommandHandle->ExecuteCommandL( - EPhoneViewSetNeedToSendToBackgroundStatus, + EPhoneViewSetNeedToReturnToForegroundAppStatus, &booleanParam ); // Bring Phone app in the foreground @@ -806,15 +806,6 @@ // Capture keys when the phone is dialling CaptureKeysDuringCallNotificationL( ETrue ); - - // Indicate that the Phone needs to be sent to the background if - // an application other than the top application is in the foreground - TPhoneCmdParamBoolean booleanParam; - booleanParam.SetBoolean( !TopAppIsDisplayedL() ); - - iViewCommandHandle->ExecuteCommandL( - EPhoneViewSetNeedToSendToBackgroundStatus, - &booleanParam ); // Bring Phone app in the foreground TPhoneCmdParamInteger uidParam;