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

Commit c251045b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "frameworks/base: Fix delay in sending AUDIO_BECOMING_NOISY intent"

parents c5201b63 1aa004b6
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -4635,7 +4635,9 @@ public class AudioService extends IAudioService.Stub {
    }

    private void onSendBecomingNoisyIntent() {
        sendBroadcastToAll(new Intent(AudioManager.ACTION_AUDIO_BECOMING_NOISY));
        Intent intent = new Intent(AudioManager.ACTION_AUDIO_BECOMING_NOISY);
        intent.addFlags(Intent.FLAG_RECEIVER_FOREGROUND);
        sendBroadcastToAll(intent);
    }

    // must be called synchronized on mConnectedDevices