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

Commit f4e554a7 authored by Sungsoo Lim's avatar Sungsoo Lim
Browse files

Activate A2DP and HFP together if available

Bug: 255278328
Tag: #refactor
Test: atest BluetoothInstrumentationTests:ActiveDeviceManagerTest
Change-Id: I642420fb5f6ae941404484ffd9298e22dc897c1e
(cherry picked from commit 12eb86d7)
Merged-In: I642420fb5f6ae941404484ffd9298e22dc897c1e
parent 68a35bf3
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -314,6 +314,9 @@ class ActiveDeviceManager {
                        setHearingAidActiveDevice(null);
                        setLeAudioActiveDevice(null);
                    }
                    if (mHfpConnectedDevices.contains(device)) {
                        setHfpActiveDevice(device);
                    }
                    // Just assign locally the new value
                    mA2dpActiveDevice = device;
                }
@@ -398,6 +401,9 @@ class ActiveDeviceManager {
                        setHearingAidActiveDevice(null);
                        setLeAudioActiveDevice(null);
                    }
                    if (mA2dpConnectedDevices.contains(device)) {
                        setA2dpActiveDevice(device);
                    }
                    // Just assign locally the new value
                    mHfpActiveDevice = device;
                }