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

Commit 99ce6458 authored by Łukasz Rymanowski (xWF)'s avatar Łukasz Rymanowski (xWF) Committed by Gerrit Code Review
Browse files

Merge "ActiveDeviceManager: Add logs when checking broadcast state" into main

parents 33fcb9a3 d7fa3157
Loading
Loading
Loading
Loading
+12 −1
Original line number Diff line number Diff line
@@ -1381,7 +1381,18 @@ public class ActiveDeviceManager implements AdapterService.BluetoothStateCallbac
     */
    private boolean isBroadcastingAudio() {
        final LeAudioService leAudioService = mFactory.getLeAudioService();
        return leAudioService != null && !leAudioService.getAllBroadcastMetadata().isEmpty();
        if (leAudioService == null) {
            Log.d(TAG, "isBroadcastingAudio: false - there is no LeAudioService");
            return false;
        }

        if (leAudioService.getAllBroadcastMetadata().isEmpty()) {
            Log.d(TAG, "isBroadcastingAudio: false - getAllBroadcastMetadata is empty");
            return false;
        }

        Log.d(TAG, "isBroadcastingAudio: true");
        return true;
    }

    /**