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

Skip to content
Commit e55f41f7 authored by Krzysztof Kopyściński's avatar Krzysztof Kopyściński
Browse files

ADM: fix active device fallback on handleHfpActiveDeviceChanged

If isDualModeAudioEnabled was false, path of HFP device== null  was mistakenly taken,
and setFallbackDeviceActiveLocked was called. We should only fallback if
device == null AND isDualModeAudioEnabled is false.

Bug: 379236455
Flag: EXEMPT, regression verified with unit test
Test: atest ActiveDeviceManagerTest#switchActiveDeviceFromLeToHfp_noFallbackToLe
Change-Id: Ieeda81694dd171e561764178cb1ed06cf13da30d
parent 40710b64
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