Closed Bug 1155075 Opened 10 years ago Closed 10 years ago

[Bluetooth2][File Transfer] It will not discovery devices automatically while shares file via Bluetooth.

Categories

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

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: iliu, Assigned: iliu)

References

Details

Attachments

(1 file)

STR: 1. Turn Bluetooth on. 2. Go into Gallery app and pick a picture to share via Bluetooth. 3. See the list of devices in area. Actual result: Do not search devices automatically. Expected result: Should search devices automatically.
Status: NEW → ASSIGNED
Comment on attachment 8595825 [details] [review] [gaia] ian-liu:bluetooth/bug1155075_discovery_devices_automatically_while_share_files_via_bluetooth > mozilla-b2g:master Arthur, Could you please help to review my pr for the bug fixing? The major changed are as following. * To discovery device while 'device_picker_panel' init. * Update the 'state', 'enabled' properties in 'BluetoothContext' module immediately while 'adapter.state' is changed. * Create '_syncWithSettingsKey' function to do this thing only. I find out a race-condition issue is relative with updating BluetoothContext status. I update the 'state', 'enabled' properties after get()/set() mozSettings key. Sometimes, it causes we cannot discovery devices after Bluetooth is just turned off -> on. Because BluetoothContext will defect to do startDiscovery() by its state. Since Bluetooth v2 code base is depends on the adapter state. I think it's better to update context state immediately. And no need to wait mozSettings sync completely. I will need your review here. Thanks.
Attachment #8595825 - Flags: review?(arthur.chen)
Comment on attachment 8595825 [details] [review] [gaia] ian-liu:bluetooth/bug1155075_discovery_devices_automatically_while_share_files_via_bluetooth > mozilla-b2g:master The change makes sense because the setting is now considered as the user preference instead of the real hardware state. r=me, thanks!
Attachment #8595825 - Flags: review?(arthur.chen) → review+
Thanks for Arthur's reviewing effort. Since patch is landed, we can close the issue now. Gaia/master: https://github.com/mozilla-b2g/gaia/commit/5d416244c0d9cbbb5823e872ac4b03addeb59bad
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: