Skip to content
Commit f377f9e0 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioService: more fixes for BT A2DP device switch

Fix a couple of remaining problems left after
commit 4599ee23.

- Increase delay before unmuting media after handling
last message in switch sequence.
- Mute stream immediately instead of via a message.
- Also mute when handling messages for media A2DP
forced usage and route updates because of MediaRouter
interaction while switching device.
- Handle muting before enqueueing the messages in case
the handler thread preempts the sender after the message
is enqueued and before mute is handled.

Bug: 144784716
Test: repro steps in bug.
Change-Id: Iaae8e6d8eb3112e9770085e65afe7fb73119b502
parent 7f5a592d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment