Skip to content

Commit

Permalink
Bug 818401 - Remove secure camera when screen goes off, r=timdream,
Browse files Browse the repository at this point in the history
    a=blocking-basecamp
  • Loading branch information
alivedise committed Dec 7, 2012
1 parent 69bbfcf commit 382d0c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions apps/system/js/lockscreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 382d0c0

Please sign in to comment.