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

Commit 12485098 authored by John Spurlock's avatar John Spurlock Committed by Android (Google) Code Review
Browse files

Merge "AudioService: Use the foreground broadcast queue for fired intents."

parents fc0b1687 86490862
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1425,6 +1425,7 @@ public class AudioService extends IAudioService.Stub {

    private void sendBroadcastToAll(Intent intent) {
        intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT);
        intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
        final long ident = Binder.clearCallingIdentity();
        try {
            mContext.sendBroadcastAsUser(intent, UserHandle.ALL);
@@ -1434,6 +1435,7 @@ public class AudioService extends IAudioService.Stub {
    }

    private void sendStickyBroadcastToAll(Intent intent) {
        intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
        final long ident = Binder.clearCallingIdentity();
        try {
            mContext.sendStickyBroadcastAsUser(intent, UserHandle.ALL);