diff -r 94dc1107e8b2 -r 40a3f856b14d phoneapp/phoneuistates/src/cphoneemergency.cpp --- a/phoneapp/phoneuistates/src/cphoneemergency.cpp Thu Jul 15 18:38:16 2010 +0300 +++ b/phoneapp/phoneuistates/src/cphoneemergency.cpp Thu Aug 19 09:54:27 2010 +0300 @@ -332,7 +332,7 @@ if ( aCallId == KPEEmergencyCallId ) { - if ( !IsSimOk() ) + if ( !IsSimOk() || IsSimStateNotPresentWithSecurityModeEnabled() ) { TPhoneCmdParamBoolean visibleMode; visibleMode.SetBoolean( ETrue ); @@ -362,12 +362,8 @@ // 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( - EPhoneViewSetNeedToReturnToForegroundAppStatus, - &booleanParam ); - + SetNeedToReturnToForegroundAppStatusL( !TopAppIsDisplayedL() ); + // Bring Phone app in the foreground TPhoneCmdParamInteger uidParam; uidParam.SetInteger( KUidPhoneApplication.iUid );