Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #10383 from alivedise/bugzilla/880609/wake-lock-af…
Browse files Browse the repository at this point in the history
…ter-device-off-and-on

Bug 880609 - Request wake lock failed after device is off and on.r=timdream,a=leo+
  • Loading branch information
alivedise committed Jun 14, 2013
2 parents 0c836be + abaff16 commit 65197db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/system/js/screen_manager.js
Expand Up @@ -393,12 +393,12 @@ var ScreenManager = {
this._setIdleTimeout(10, true);
var self = this;
var stopShortIdleTimeout = function scm_stopShortIdleTimeout() {
window.removeEventListener('unlock', stopShortIdleTimeout);
window.removeEventListener('will-unlock', stopShortIdleTimeout);
window.removeEventListener('lockpanelchange', stopShortIdleTimeout);
self._setIdleTimeout(self._idleTimeout, false);
};

window.addEventListener('unlock', stopShortIdleTimeout);
window.addEventListener('will-unlock', stopShortIdleTimeout);
window.addEventListener('lockpanelchange', stopShortIdleTimeout);
} else {
this._setIdleTimeout(this._idleTimeout, false);
Expand Down

0 comments on commit 65197db

Please sign in to comment.