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

Commit 2feaade8 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Automerger Merge Worker
Browse files

BluetoothLeAudio: Add missing group check am: efa9b4e0

parents f9521595 efa9b4e0
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -440,7 +440,8 @@ public class LeAudioService extends ProfileService {
    }
    }


    BluetoothDevice getConnectedGroupLeadDevice(int groupId) {
    BluetoothDevice getConnectedGroupLeadDevice(int groupId) {
        if (mActiveAudioOutDevice != null) {
        if (mActiveAudioOutDevice != null
            && getGroupId(mActiveAudioOutDevice) == groupId) {
            return mActiveAudioOutDevice;
            return mActiveAudioOutDevice;
        }
        }
        return getFirstDeviceFromGroup(groupId);
        return getFirstDeviceFromGroup(groupId);