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

Commit efa9b4e0 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski Committed by Alice Kuo
Browse files

BluetoothLeAudio: Add missing group check

Bug: 228809876
Test: atest BluetoothInstrumentationTests
Sponsor: @jpawlowski
Change-Id: I7a208f974375a4ab3a4a4795ddb78e9f409fc744
Merged-In: I7a208f974375a4ab3a4a4795ddb78e9f409fc744
(cherry picked from commit c6d6870c)
parent 8ed41c96
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -440,7 +440,8 @@ public class LeAudioService extends ProfileService {
    }

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