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 #10366 from alivedise/bugzilla/880609_master/wake-…
Browse files Browse the repository at this point in the history
…lock-after-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 02ca08e + 2bd0953 commit 81a31eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/system/js/screen_manager.js
Expand Up @@ -391,12 +391,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 81a31eb

Please sign in to comment.