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

Commit 368415cf authored by Zach Johnson's avatar Zach Johnson Committed by Android Git Automerger
Browse files

am 5ef5d125: Add FLAG_RECEIVER_FOREGROUND to audio state broadcasts

* commit '5ef5d125':
  Add FLAG_RECEIVER_FOREGROUND to audio state broadcasts
parents d59e1d4e 5ef5d125
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2242,6 +2242,7 @@ final class HeadsetClientStateMachine extends StateMachine {

    private void broadcastAudioState(BluetoothDevice device, int newState, int prevState) {
        Intent intent = new Intent(BluetoothHeadsetClient.ACTION_AUDIO_STATE_CHANGED);
        intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
        intent.putExtra(BluetoothProfile.EXTRA_PREVIOUS_STATE, prevState);
        intent.putExtra(BluetoothProfile.EXTRA_STATE, newState);