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

Commit 33a5876f authored by William Escande's avatar William Escande
Browse files

LeAudioService: getDevicesMatchingConnectionStates

Keep iterating on device instead of returning a partially completed list

Test: atest BluetoothInstrumentationTests
Bug: 352610940
Flag: Exempt, required for landing the permission fix that can't be flag
Change-Id: Ie32b2a29aa690eec161a838430f75a0b3f213f65
parent dd572237
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -837,10 +837,9 @@ public class LeAudioService extends ProfileService {
                if (descriptor == null) {
                    Log.e(
                            TAG,
                            "getDevicesMatchingConnectionStates: "
                                    + "No valid descriptor for device: "
                            "getDevicesMatchingConnectionStates: No valid descriptor for device: "
                                    + device);
                    return null;
                    continue;
                }

                LeAudioStateMachine sm = descriptor.mStateMachine;