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

Bug 945631 - Listen to event discoverystatechanged #14353

Merged
merged 1 commit into from May 24, 2014

Conversation

eric30
Copy link
Contributor

@eric30 eric30 commented Dec 4, 2013

After Bluetooth backend has changed to Bluedroid in Firefox OS 1.3, the discovery session will be terminated in about 13 secs (and I haven't found where I could modify this number without touching code). Under certain circumstances, Gaia needs to handle event discoverystatechanged which would be sent once the discovering state changes, otherwise UI won't react as expected.

@@ -407,6 +407,19 @@ navigator.mozL10n.ready(function bluetoothSettings() {
showDevicePaired(evt.status, 'Authentication Failed');
};

defaultAdapter.ondiscoverystatechanged =
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also remove ui related logic (searchAgainBtn.disabled, searchingItem.hidden) as the ui state simply follow the discovery state.

eric30 added a commit that referenced this pull request May 24, 2014
Bug 945631 - Listen to event discoverystatechanged, r=arthurcc
@eric30 eric30 merged commit b9cae25 into mozilla-b2g:master May 24, 2014
eric30 added a commit that referenced this pull request May 27, 2014
Bug 945631 - Listen to event discoverystatechanged, r=arthurcc
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants