Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 0765d8f6 authored by Hyundo Moon's avatar Hyundo Moon
Browse files

Pass correct active context from native

When calling LeAudioClientCallbacks.OnAudioConf(), the argument
'avail_cont' was incorrectly being passed. When there is no change
in the active context, the value becomes zero. However it should be
the current active context.

This resulted the LeAudioService make the phone speaker as output
when only one earbud is disconnected, since the service thinks that
the new audio configuration (remaining earbud) is not able to
handle the current audio output.
(See LeAudioService#updateActiveOutDevice())

This CL fixes the available context, and this results:
- Output does not change to speaker when only one headset is
  disconnected (i.e. another side of headset is not disconnected yet).
- Then the output changes to speaker when the remaining headset is
  disconnected. Music is paused at this moment.

Bug: 207090924
Tag: #stability
Test: Maunally tested followings:
      - forgetting LE headset (music paused)
      - disconnecting LE headset (music paused)
      - Switching btw. LE headset and speaker via UI (music not paused)
Change-Id: I916d6dd044b15b477700d27db8f25025f2404f4f
parent a3f2fceb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment