phoneapp/phoneuistates/src/cphoneemergency.cpp
branchRCL_3
changeset 23 40a3f856b14d
parent 22 94dc1107e8b2
child 24 41a7f70b3818
--- 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 );