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

Commit 81db23b8 authored by Andrew Lee's avatar Andrew Lee Committed by Android (Google) Code Review
Browse files

Merge "Add FLAG_RECEIVER_FOREGROUND to broadcast to call receiver." into lmp-dev

parents 5adc858b c0670ffd
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -156,8 +156,7 @@ public class CallActivity extends Activity {
     */
    private boolean sendBroadcastToReceiver(Intent intent, boolean incoming) {
        intent.putExtra(CallReceiver.KEY_IS_INCOMING_CALL, incoming);
        // Clear out any flags set previously since we don't need it for the broadcast.
        intent.setFlags(0);
        intent.setFlags(Intent.FLAG_RECEIVER_FOREGROUND);
        intent.setClass(this, CallReceiver.class);
        Log.d(this, "Sending broadcast as user to CallReceiver- isIncoming: %s", incoming);
        sendBroadcastAsUser(intent, UserHandle.OWNER);