Closed Bug 828174 Opened 13 years ago Closed 13 years ago

[Settings] Track Bluetooth discovery state

Categories

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

defect
Not set
normal

Tracking

(blocking-basecamp:-, b2g18+ fixed)

RESOLVED FIXED
blocking-basecamp -
Tracking Status
b2g18 + fixed

People

(Reporter: tzimmermann, Assigned: tzimmermann)

Details

Attachments

(1 file, 1 obsolete file)

The settings app unconditionally tries to stop Bluetooth discoveries. When no discovery is running, the error message > I/Gonk ( 110): dbus_func_args_timeout_valist: D-Bus error in StopDiscovery: org.bluez.Error.Failed (Invalid discovery session) shows up in the logcat.
Assignee: nobody → tzimmermann
Comment on attachment 699619 [details] [diff] [review] Track Bluetooth discovery state in Settings app r=me, we don't need another variable to record bluetooth is in discovering mode. Instead, just simply check if "discoverTimeout" exists. that will be much easier.
Attachment #699619 - Flags: review?(ehung) → review-
blocking-basecamp: --- → ?
We now reuse the discoverTimeout variable. We can start a discovery if it's not set, and stop the discovery if it's set.
Attachment #699619 - Attachment is obsolete: true
Attachment #699833 - Flags: review?(ehung)
Comment on attachment 699833 [details] [diff] [review] [v2] Track Bluetooth discovery state in Settings app r=me, great work. Thanks!
Attachment #699833 - Flags: review?(ehung) → review+
We would take a patch for this.
blocking-basecamp: ? → -
tracking-b2g18: --- → +
(In reply to David Scravaglieri [:scravag] from comment #5) > We would take a patch for this. What do you mean? :/ A pull request is already pending at https://github.com/mozilla-b2g/gaia/pull/7444
It means we need Vivien's approval to land this patch. :p
Comment on attachment 699833 [details] [diff] [review] [v2] Track Bluetooth discovery state in Settings app NOTE: If blocking-basecamp+ is set, just land it for now. [Approval Request Comment] Bug caused by (feature/regressing bug #): User impact if declined: Testing completed: Risk to taking this patch (and alternatives if risky):
Attachment #699833 - Flags: approval-gaia-master?(21)
Comment on attachment 699833 [details] [diff] [review] [v2] Track Bluetooth discovery state in Settings app One liner. Let's go with it.
Attachment #699833 - Flags: approval-gaia-master?(21) → approval-gaia-master+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: