--- a/securitydialogs/Autolock/src/AutoKeyguardObserver.cpp Thu Jul 15 19:36:50 2010 +0300
+++ b/securitydialogs/Autolock/src/AutoKeyguardObserver.cpp Thu Aug 19 10:45:23 2010 +0300
@@ -368,6 +368,20 @@
RProperty::Get(KPSUidScreenSaver, KScreenSaverActivatedFromIdle, value);
screenSaverStertedFromIdle = (value == KSsStartedFromIdle);
+ // See if SIM is accepted
+ if(idle)
+ {
+ value = 0;
+ RProperty::Get(KPSUidStartup, KPSSimStatus, value);
+ // automatic lock can't get enabled if SIM-locked.
+ if(value == ESimNotReady)
+ idle = EFalse;
+ #if defined(_DEBUG)
+ RDebug::Print(_L("(AUTOLOCK)CAutoKeyguardObserver::LockKeysL() KPSSimStatus state: %d"), value);
+ RDebug::Print(_L("(AUTOLOCK)CAutoKeyguardObserver::LockKeysL() ESimUsable: %d"), ESimUsable);
+ #endif
+ }
+
//See if all the startup related queries and graphics has been displayed
value = 0;
RProperty::Get(KPSUidStartup, KPSStartupUiPhase, value);