Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.1
-
None
-
3113a91f50f12c8ee53f2e84f6b46fde6c2c1693
Description
When QML Viewer is open the current consumption in sleep mode increases from ~8 mA to 16mA. It looks like the sensor orientation detection implemented in deviceorientation_symbian.cpp is causing this.
Active window status is often used to detect if the application is currently being used, that could be used to fix the above problem:
if (event->type() == QEvent::WindowActivate) { enableSensorChannel(); } else if (event->type() == QEvent::WindowDeactivate) { disableSensorChannel(); }