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

Commit 8fe21aec authored by Zach Johnson's avatar Zach Johnson Committed by Android Git Automerger
Browse files

am 5d0f2973: Add FLAG_RECEIVER_FOREGROUND to audio state broadcasts

* commit '5d0f2973':
  Add FLAG_RECEIVER_FOREGROUND to audio state broadcasts
parents 52879f79 5d0f2973
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);