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

Commit 6001ba3d authored by Yorke Lee's avatar Yorke Lee Committed by Android Git Automerger
Browse files

am e6f575c8: Fix IllegalStateException when sending broadcast to CallReceiver

* commit 'e6f575c8':
  Fix IllegalStateException when sending broadcast to CallReceiver
parents f8456efc e6f575c8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -147,6 +147,8 @@ 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.setClass(this, CallReceiver.class);
        Log.d(this, "Sending broadcast as user to CallReceiver- isIncoming: %s", incoming);
        sendBroadcastAsUser(intent, UserHandle.OWNER);