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

Commit e6f575c8 authored by Yorke Lee's avatar Yorke Lee
Browse files

Fix IllegalStateException when sending broadcast to CallReceiver

Bug: 17656099
Change-Id: I12ebd394ec31a9be3d1127cf8f45332ebfa40d0a
parent 68d1a6b0
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);