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

Commit 157fb201 authored by Rongxuan Liu's avatar Rongxuan Liu
Browse files

[le audio] Null check when setting le audio active device

Bug: 381557098
Flag: EXEMPT, null check
Test: atest ActiveDeviceManagerTest
Change-Id: Ic0a8eab6d3e8a7369689fb063a75c38349b3de0e
parent 35af90a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -412,7 +412,7 @@ public class ActiveDeviceManager implements AdapterService.BluetoothStateCallbac
                final LeAudioService leAudioService = mFactory.getLeAudioService();
                setA2dpActiveDevice(null, true);
                setHfpActiveDevice(null);
                if (Flags.admVerifyActiveFallbackDevice()) {
                if (Flags.admVerifyActiveFallbackDevice() && leAudioService != null) {
                    setLeAudioActiveDevice(
                            null, !leAudioService.getActiveDevices().contains(device));
                } else {