Closed Bug 1116437 Opened 10 years ago Closed 10 years ago

[Bluetooth] promisify Bluetooth getadapter

Categories

(Firefox OS Graveyard :: Gaia::Bluetooth, defect)

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: gasolin, Assigned: gasolin)

References

Details

Attachments

(1 file)

for compatibility with APIv2, it will be more efficient to switch to promise first instead of keep using callback.
work based on bug 1128812, make getadapter return promise allow v1/v2 share same bluetooth_transfer.js, test on device ok.
Assignee: nobody → gasolin
Blocks: 1088591
Depends on: 1128812
Status: NEW → ASSIGNED
since we decide not expose getAdapter function with BT APIv2, the patch is obsolete.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: