Closed Bug 1197711 Opened 10 years ago Closed 10 years ago

[Bluetooth][Callscreen] BTReceiverIcon icon does not show correctly

Categories

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

ARM
Gonk (Firefox OS)
defect
Not set
normal

Tracking

(blocking-b2g:2.5+)

RESOLVED FIXED
blocking-b2g 2.5+

People

(Reporter: gasolin, Assigned: gasolin)

Details

Attachments

(1 file)

https://github.com/gasolin/gaia/blob/master/apps/callscreen/js/calls_handler.js#L52 Due to API migration, the `getConnectedDevicesByProfile` api is deprecated and have no replacement here.
BTHelper only provide warning but not have the replacement https://github.com/mozilla-b2g/gaia/blob/9dfedd7d35da00fa9b08dcffc3ab4f47da54e4f0/shared/js/bluetooth_helper.js#L177-L181 And theres no isscoConnected equivalent `ishfpConnected` api available in Gecko
Since adapter.getConnectedDevices api is still exist, we could just remove the false alert https://dxr.mozilla.org/mozilla-central/source/dom/webidl/BluetoothAdapter.webidl?from=BluetoothAdapter.webidl&offset=0#108
[Blocking Requested - why for this release]: regression of BT APIv2 migration
blocking-b2g: --- → 2.5?
Assignee: nobody → gasolin
Comment on attachment 8652132 [details] [review] [gaia] gasolin:issue-1197711 > mozilla-b2g:master francisco, since the `getConnectedDevicesByProfile` API is only called in callscreen https://github.com/gasolin/gaia/blob/master/apps/callscreen/js/calls_handler.js#L52 Could you help review if it solve the issue. The STR: * pair bluetooth headphone (hfp denotes head phone profile) * reboot and dial to this device * see if icon has changed to headphone
Attachment #8652132 - Flags: review?(fjordano)
Comment on attachment 8652132 [details] [review] [gaia] gasolin:issue-1197711 > mozilla-b2g:master Redirecting to Gabriele. Gabriele, can you find someone to help here?
Attachment #8652132 - Flags: review?(fjordano) → review?(gsvelto)
Comment on attachment 8652132 [details] [review] [gaia] gasolin:issue-1197711 > mozilla-b2g:master Redirecting the review to :drs since I've got a pretty long review queue right now.
Attachment #8652132 - Flags: review?(gsvelto) → review?(drs)
Comment on attachment 8652132 [details] [review] [gaia] gasolin:issue-1197711 > mozilla-b2g:master This change also impacts the Music and Settings apps, so we should flag peers of those modules for reviews as well. My guesses for these people would be :justindarc for Music, and :evelyn for Settings. This might be a bit pedantic, but I don't know this code very well. I am reviewing only for the Callscreen. Please see my comment on the PR.
Attachment #8652132 - Flags: review?(drs) → review-
Doug/Fred, Can you please provide a screen shot? Will help in 2.5 triage.
Flags: needinfo?(gasolin)
Thanks for review. Though the change does not impact Music nor Settings app because they did not call `getConnectedDevicesByProfile` method(with Bluetooth APIv2). Callscreen is the only usecase.
blocking-b2g: 2.5? → 2.5+
Comment on attachment 8652132 [details] [review] [gaia] gasolin:issue-1197711 > mozilla-b2g:master @evelyn could you help review the bluetooth helper? also ask @jocelyn's feedback for proper use of BT APIv2
Flags: needinfo?(gasolin)
Attachment #8652132 - Flags: review?(ehung)
Attachment #8652132 - Flags: review-
Attachment #8652132 - Flags: feedback?(joliu)
Comment on attachment 8652132 [details] [review] [gaia] gasolin:issue-1197711 > mozilla-b2g:master Hi Fred, We didn't revise this API in BT APIv2 development, there should be no difference in the API usage. Thanks, Jocelyn
Attachment #8652132 - Flags: feedback?(joliu)
Comment on attachment 8652132 [details] [review] [gaia] gasolin:issue-1197711 > mozilla-b2g:master Thanks.
Attachment #8652132 - Flags: review?(ehung) → review+
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: