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

Commit 077b456a authored by Thomas Girardier's avatar Thomas Girardier Committed by Gerrit Code Review
Browse files

Merge "ADM: fix switching between LEA and ASHA on same device" into main

parents 976674fe 3d81c371
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -719,7 +719,7 @@ public class ActiveDeviceManager implements AdapterService.BluetoothStateCallbac
                if ((!Utils.isDualModeAudioEnabled() && device == null)) {
                    Log.d(TAG, "HFP active device is null. Try to fallback to the active device.");
                    synchronized (mLock) {
                        setFallbackDeviceActiveLocked(null);
                        setFallbackDeviceActiveLocked(mHfpActiveDevice /* recentlyRemovedDevice */);
                    }
                }
            }
@@ -831,7 +831,7 @@ public class ActiveDeviceManager implements AdapterService.BluetoothStateCallbac
            if (device == null && !Utils.isDualModeAudioEnabled() && !isBroadcastingAudio()) {
                Log.d(TAG, "LE audio active device is null. Try to fallback to the active device.");
                synchronized (mLock) {
                    setFallbackDeviceActiveLocked(device);
                    setFallbackDeviceActiveLocked(mLeAudioActiveDevice /* recentlyRemovedDevice */);
                }
            }