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

Commit 5334bcc0 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioService: update getPreferredDevicesForStrategy

Use the cache stored in AudioDeviceInventory instead of
querying the AudioPolicyManager.
This avoids reflecting the preferred device due to setCommunicationDevice.

Bug: 417481226
Flag: com.android.media.audio.update_preferred_devices_for_strategy
Test: atest AudioManagerTest#testPreferredDevicesForStrategy
Test: atest NonDefaultDeviceForStrategyTest

Change-Id: I704c7c618e5ce306240c1292268d5bfcadba2bd2
parent 8bfe8a87
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