Closed
Bug 862402
Opened 12 years ago
Closed 12 years ago
[Settings][bluetooth] connected device will be shown disconnected after settings app killed
Categories
(Firefox OS Graveyard :: Gaia::Settings, defect, P1)
Tracking
(blocking-b2g:leo+, b2g18+ fixed)
People
(Reporter: pyang, Assigned: arthurcc)
References
()
Details
(Whiteboard: [TD-24722])
Attachments
(1 file)
Precondition:
Unagi with v1.0.1 nightly build
build id:20130415230202
Any bluetooth devices
reproduce steps:
1. search for target device in settings app
2. pair with target device; then manual or automatical connect it
3. verify if the device is connected
4. long press home button to launch window manager
5. kill settings app in window manager
6. re-open settings app
7. in settings it shows device is disconnected (but paired)
8. click the device name, try to re-connect it;
9. pop-up a warning and fail to connected;
Actually the connection remains but settings app gives a wrong status.
Comment 2•12 years ago
|
||
Nominated as tef? since the connection status is out of sync after following STR, and the only way to fix it is to turn off and turn on Bluetooth again.
In details, the Bluetooth Headset had successfully connected to our FFos phone actually, but Settings app failed to get correct connection status when re-launching it and wrong options are shown for paired devices, i.e. 'Connect' and 'Unpair'. There's no way to disconnect with the Bluetooth Headset from FFos phone.
blocking-b2g: --- → tef?
Comment 3•12 years ago
|
||
Add more details for STR:
(In reply to Paul Yang from comment #0)
> reproduce steps:
> 1. search for target device in settings app
> 2. pair with target device; then manual or automatical connect it
> 3. verify if the device is connected
> 4. long press home button to launch window manager
> 5. kill settings app in window manager
> 6. re-open settings app
> 7. in settings it shows device is disconnected (but paired)
> 8. click the device name, try to re-connect it;
> 9. pop-up a warning and fail to connected;
>
Actully, we don't need to do Step 8 manually, and the warning described in Step 9 will be popped out automatically because Settings app will try to connect with the latest Bluetooth headset once we enter the Bluetooth subpage.
As a result, a warning window is shown immediately after entering Bluetooth subpage.
Comment 4•12 years ago
|
||
(In reply to Gina Yeh [:gyeh] [:ginayeh] from comment #3)
> Add more details for STR:
>
> (In reply to Paul Yang from comment #0)
> > reproduce steps:
> > 1. search for target device in settings app
> > 2. pair with target device; then manual or automatical connect it
> > 3. verify if the device is connected
> > 4. long press home button to launch window manager
> > 5. kill settings app in window manager
> > 6. re-open settings app
> > 7. in settings it shows device is disconnected (but paired)
> > 8. click the device name, try to re-connect it;
> > 9. pop-up a warning and fail to connected;
> >
>
> Actully, we don't need to do Step 8 manually, and the warning described in
> Step 9 will be popped out automatically because Settings app will try to
> connect with the latest Bluetooth headset once we enter the Bluetooth
> subpage.
>
> As a result, a warning window is shown immediately after entering Bluetooth
> subpage.
Rewrite STR to make it clear:
1. pair with a headset in settings app, and see the headset is connected automatically
2. if not, manually connect it by one click and select 'connect'
3. verify if the device is connected
4. long press home button to see app card view, and then kill Settings app
5. re-open Settings app
Expected:
see the headset is still connected.
Actual:
it shows disconnected (but paired), and a fail to connected window pops up.
Settings app can't acquire device connected/disconnected information now. However, it will try to restore connection at launch time if there was a connected headset before. So in this case, it's trying to connect a connected device and get an error from Gecko, and then the error window prompts.
(In reply to Gina Yeh [:gyeh] [:ginayeh] from comment #2)
> Nominated as tef? since the connection status is out of sync after following
> STR, and the only way to fix it is to turn off and turn on Bluetooth again.
>
agree.
Comment 5•12 years ago
|
||
Unless this ends up blocking certification, this bug isn't a blocker. Not user critical in any normal user scenario.
blocking-b2g: tef? → -
Updated•12 years ago
|
tracking-b2g18:
--- → +
Comment 6•12 years ago
|
||
Since bug 850157 has landed, we could start fixing this.
Comment 7•12 years ago
|
||
Take because I have a WIP patch waiting for this API done.
Assignee: nobody → ehung
Comment 8•12 years ago
|
||
Dear Mozilaa Team,
Leo device is reproduced this bug.
Please check ASAP.
Thanks.
Updated•12 years ago
|
Whiteboard: [TD-24722]
Updated•12 years ago
|
Target Milestone: --- → 1.1 QE2
Updated•12 years ago
|
blocking-b2g: - → leo?
Priority: -- → P1
Comment 10•12 years ago
|
||
needsinfo Evelyn to get an update here as there was WIP patch per comment #7 and keeping in mind the priority as this is recently leo+ . Please let us know how the patch is progressing? Thanks !
Flags: needinfo?(ehung)
Comment 11•12 years ago
|
||
Sorry I didn't notice this issue is marked as leo+. I took this issue almost one month ago, and the WIP patch is totally not synced with the final landed API. I'd like to mentor someone to fix it. Re-assign this issue to Arthur first.
Assignee: ehung → arthur.chen
Flags: needinfo?(ehung)
Comment 12•12 years ago
|
||
Dear Mozilla Team,
Please let me know how the patch is progressing?
Thanks.
Assignee | ||
Comment 13•12 years ago
|
||
I'll check it today. Thanks!
Assignee | ||
Comment 14•12 years ago
|
||
Evelyn, please help review the change, thanks!
Attachment #754328 -
Flags: review?(ehung)
Comment 15•12 years ago
|
||
Comment on attachment 754328 [details]
Link to https://github.com/mozilla-b2g/gaia/pull/10010
r=me. tested and looks good. Thanks.
Attachment #754328 -
Flags: review?(ehung) → review+
Comment 16•12 years ago
|
||
merged int gaia-master:
https://github.com/mozilla-b2g/gaia/commit/794c2f30c19e0d219d7d3e7f21befad0bb1999c5
Assignee | ||
Comment 17•12 years ago
|
||
Updated•12 years ago
|
Flags: in-moztrap?
Updated•11 years ago
|
Flags: in-moztrap? → in-moztrap+
You need to log in
before you can comment on or make changes to this bug.
Description
•