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 #15826 from jimporter/dialer-tone-priority
Browse files Browse the repository at this point in the history
Bug 961986 - [fugu][buri] it took long time to resume music play after ending a phone call r=etienne
  • Loading branch information
etiennesegonzac committed Jan 31, 2014
2 parents 2ef280e + 7ef65d5 commit 8e23911
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions apps/communications/dialer/js/oncall.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,11 @@ window.addEventListener('load', function callSetup(evt) {
CallScreen.init();
KeypadManager.init(true);
});

window.addEventListener('unload', function() {
// When we end the call, we need to clean up the TonePlayer to reset the audio
// context's channel back to "normal" to let other audio start playing again.
// Otherwise, we'll have to wait until the cycle collector kills it, which
// can take a while.
TonePlayer.setChannel('normal');
});

0 comments on commit 8e23911

Please sign in to comment.