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 #33355 from albertopq/1225333-statusbar-gallery
Browse files Browse the repository at this point in the history
Bug 1225333 - setAppearence when requesting unlock r=etienne
  • Loading branch information
albertopq committed Nov 26, 2015
2 parents 5d4c318 + 1a96942 commit 6f4aa7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/system/js/statusbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@
window.addEventListener('iconshown', this);
window.addEventListener('iconhidden', this);
window.addEventListener('iconrendered', this);

if (Service.query('FtuLauncher.isFinished')) {
this.finishInit();
} else {
Expand Down Expand Up @@ -138,6 +139,7 @@
window.addEventListener('activityopened', this);
window.addEventListener('homescreenopened', this);
window.addEventListener('stackchanged', this);
window.addEventListener('lockscreen-request-unlock', this);

// Listen to updates dialog
window.addEventListener('updatepromptshown', this);
Expand Down Expand Up @@ -232,6 +234,7 @@
/* falls through */
case 'appclosed':
case 'hierarchytopmostwindowchanged':
case 'lockscreen-request-unlock':
case 'appchromeexpanded':
this.element.classList.remove('hidden');
this.setAppearance();
Expand Down
4 changes: 4 additions & 0 deletions apps/system/test/unit/statusbar_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,10 @@ suite('system/Statusbar', function() {
testEventThatShows.bind(this)('appchromeexpanded');
});

test('lockscreen-request-unlock', function() {
testEventThatShows.bind(this)('lockscreen-request-unlock');
});

test('apptitlestatechanged', function() {
testEventThatShows.bind(this)('apptitlestatechanged');
});
Expand Down

0 comments on commit 6f4aa7b

Please sign in to comment.