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

Commit d7fa3157 authored by Łukasz Rymanowski's avatar Łukasz Rymanowski
Browse files

ActiveDeviceManager: Add logs when checking broadcast state

Bug: 331775328
Flag: EXEMPT, logging only change.
Test: mmm packages/modules/Bluetooth
Change-Id: I05e2d0752bf25c31de4ffcb6072684731af35963
parent fac08f46
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;
    }

    /**