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

Commit c0670ffd authored by Andrew Lee's avatar Andrew Lee
Browse files

Add FLAG_RECEIVER_FOREGROUND to broadcast to call receiver.

Bug: 17692294
Change-Id: Ibe2b012a83b940735a11e4adccc3d7d8ec99e8ea
parent 72d271c4
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);