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

Commit 9c74aa88 authored by Chenjie Luo's avatar Chenjie Luo Committed by Android (Google) Code Review
Browse files

Merge "Add foreground flag to AG_CALL_CHANGED broadcast intent." into nyc-mr1-dev

parents 74dcd4eb 06c566eb
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -323,6 +323,7 @@ final class HeadsetClientStateMachine extends StateMachine {
    private void sendCallChangedIntent(BluetoothHeadsetClientCall c) {
        Log.d(TAG, "sendCallChangedIntent " + c);
        Intent intent = new Intent(BluetoothHeadsetClient.ACTION_CALL_CHANGED);
        intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
        intent.putExtra(BluetoothHeadsetClient.EXTRA_CALL, c);
        mService.sendBroadcast(intent, ProfileService.BLUETOOTH_PERM);
    }