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

Commit b4ab54ab authored by Grzegorz Kołodziejczyk's avatar Grzegorz Kołodziejczyk
Browse files

Invert getting first device from group logic

This corrects condition check for device groupId.

Tag: #feature
Bug: 261362580
Test: atest LeAudioServiceTest
Change-Id: I2400e404ea381bbfe3616ed60738d93becbcc759
parent 4fba3624
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -838,7 +838,7 @@ public class LeAudioService extends ProfileService {
        }
        synchronized (mGroupLock) {
            for (LeAudioDeviceDescriptor descriptor : mDeviceDescriptors.values()) {
                if (descriptor.mGroupId.equals(groupId)) {
                if (!descriptor.mGroupId.equals(groupId)) {
                    continue;
                }