--- a/coreapplicationuis/SysAp/Src/SysApLightsController.cpp Wed Jun 09 09:52:12 2010 +0300
+++ b/coreapplicationuis/SysAp/Src/SysApLightsController.cpp Mon Jun 21 15:51:07 2010 +0300
@@ -30,6 +30,7 @@
#include "SysApFeatureManager.h"
#include "startupdomainpskeys.h"
+#include <hal.h>
// CONSTANTS
@@ -995,6 +996,8 @@
{
TRAP(err, iLight->LightOffL(CHWRMLight::ESystemTarget));
iSysApAppUi.StopChargingBatteryL();
+ //To switch off the display
+ TInt result = HAL::Set( HALData::EDisplayState, 0 );
}
// Ignore unreserved in use warnings.
if ( err != KErrNone && err != KErrInUse )
@@ -1101,6 +1104,8 @@
if ( error == KErrNone && state == ESwStateCharging )
{
iSysApAppUi.StartChargingBatteryL();
+ //To switch on the display
+ TInt result = HAL::Set( HALData::EDisplayState, 1 );
}
}
else