Permalink
Browse files

Merge pull request #6872 from alivedise/bugzilla/818401/remove-camera…

…-when-screen-off

Bug 818401 - Remove secure camera when screen goes off
  • Loading branch information...
alivedise committed Dec 7, 2012
2 parents 2e75875 + 382d0c0 commit a30bbe1f909a052dd2afd08272e438fc8021d14a
Showing with 5 additions and 0 deletions.
  1. +5 −0 apps/system/js/lockscreen.js
@@ -233,6 +233,11 @@ var LockScreen = {
if (!this.locked) {
this._screenOffTime = new Date().getTime();
}
+
+ // Remove camera once screen turns off
+ if (this.camera.firstElementChild)
+ this.camera.removeChild(this.camera.firstElementChild);
+
} else {
var _screenOffInterval = new Date().getTime() - this._screenOffTime;
if (_screenOffInterval > this.passCodeRequestTimeout * 1000) {

0 comments on commit a30bbe1

Please sign in to comment.