securitydialogs/lockapp/src/lockappkeyguardcontrol.cpp
changeset 15 318c4eab2439
parent 0 164170e6151a
child 19 098e361762d2
--- a/securitydialogs/lockapp/src/lockappkeyguardcontrol.cpp	Fri Mar 19 09:41:08 2010 +0200
+++ b/securitydialogs/lockapp/src/lockappkeyguardcontrol.cpp	Fri Apr 16 15:53:24 2010 +0300
@@ -35,7 +35,7 @@
 
 #include "AutolockPrivateCRKeys.h"
 #include <settingsinternalcrkeys.h>
-#include <ScreensaverInternalPSKeys.h>
+// #include <ScreensaverInternalPSKeys.h>
 #include <hwrmdomainpskeys.h>
 #include <activeidle2domainpskeys.h>
 //#include <CoreApplicationUIsPrivateCRKeys.h> TODO remove
@@ -298,12 +298,20 @@
     idle = (value == EPSAiForeground);
     INFO_2("CLockAppKeyguardControl::AutoActivationAllowedL - idle: %d %d", value, idle);
     value = 0;
+		/* This is not used any more because screensavers are removed now
     RProperty::Get( KPSUidScreenSaver, KScreenSaverOn, value );
     screenSaverOn = (value > 0);
+    */
+    screenSaverOn = ETrue;
+    
     INFO_2("CLockAppKeyguardControl::AutoActivationAllowedL - screenSaverOn: %d %d", value, screenSaverOn);
     value = 0;
+		/* This is not used any more because screensavers are removed now
     RProperty::Get( KPSUidScreenSaver, KScreenSaverActivatedFromIdle, value );
     screenSaverStertedFromIdle = (value == KSsStartedFromIdle);
+    */
+    screenSaverStertedFromIdle = ETrue;
+    
     INFO_2("CLockAppKeyguardControl::AutoActivationAllowedL - screenSaverStertedFromIdle: %d %d", value, screenSaverStertedFromIdle);
 
     // If a call is ongoing or idle doesnt have foreground and