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 #11829 from crh0716/900870
Browse files Browse the repository at this point in the history
Bug 900870 - Register to onpairedstatuschanged and remove bluetooth-pairedstatuschanged system message r=evelyn
  • Loading branch information
crh0716 committed Sep 6, 2013
2 parents 3384ddd + 8b221b7 commit 420a072
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
10 changes: 4 additions & 6 deletions apps/settings/js/bluetooth.js
Expand Up @@ -353,12 +353,10 @@ navigator.mozL10n.ready(function bluetoothSettings() {
}
);

navigator.mozSetMessageHandler('bluetooth-pairedstatuschanged',
function bt_getPairedMessage(message) {
dispatchEvent(new CustomEvent('bluetooth-pairedstatuschanged'));
showDevicePaired(message.paired, 'Authentication Failed');
}
);
defaultAdapter.onpairedstatuschanged = function bt_getPairedMessage(evt) {
dispatchEvent(new CustomEvent('bluetooth-pairedstatuschanged'));
showDevicePaired(evt.status, 'Authentication Failed');
};

defaultAdapter.onhfpstatuschanged = function bt_getConnectedMessage(evt) {
showDeviceConnected(evt.address, evt.status);
Expand Down
3 changes: 1 addition & 2 deletions apps/settings/manifest.webapp
Expand Up @@ -39,8 +39,7 @@
}
},
"messages": ["bluetooth-pairing-request",
"bluetooth-cancel",
"bluetooth-pairedstatuschanged"],
"bluetooth-cancel"],
"locales": {
"ar": {
"name": "الضبط",
Expand Down

0 comments on commit 420a072

Please sign in to comment.