Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Bug 818401 - Remove secure camera when screen goes off #6872

Merged
merged 1 commit into from

1 participant

@alivedise
Collaborator

No description provided.

@alivedise alivedise merged commit a30bbe1 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Dec 7, 2012
  1. @alivedise
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 0 deletions.
  1. +5 −0 apps/system/js/lockscreen.js
View
5 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) {
Something went wrong with that request. Please try again.