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

Commit 8366a3e4 authored by Jakub Tyszkowski's avatar Jakub Tyszkowski
Browse files

broadcaster: Remove redundant code

This code is valid only in STREAMING state.

Bug: 150670922
Tag: #feature
Test: atest BluetoothInstrumentationTests
Sponsor: jpawlowski@
Change-Id: I11dae3ed37bae5c3d5edc7834014db0e6f2cdbb3
parent f3372292
Loading
Loading
Loading
Loading
+0 −6
Original line number Diff line number Diff line
@@ -1178,12 +1178,6 @@ public class LeAudioService extends ProfileService {
            } else if (state == LeAudioStackEvent.BROADCAST_STATE_PAUSED) {
                if (DBG) Log.d(TAG, "Broadcast Instance id: " + instanceId + " paused.");

                if (!mBroadcastsPlaybackMap.containsKey(instanceId)) {
                    // Initial playback state after the creation
                    notifyBroadcastStarted(instanceId,
                            BluetoothStatusCodes.REASON_LOCAL_APP_REQUEST);
                }

                // Playback paused
                mBroadcastsPlaybackMap.put(instanceId, false);
                notifyPlaybackStopped(instanceId, BluetoothStatusCodes.REASON_LOCAL_STACK_REQUEST);