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

Commit 8fd0f8f0 authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am 02d9054a: am db1c0e19: Merge "fix condition to send...

am 02d9054a: am db1c0e19: Merge "fix condition to send ACTION_AUDIO_BECOMING_NOISY intent" into lmp-dev

* commit '02d9054a9a9440b0f12780221cc385fe6334f556':
  fix condition to send ACTION_AUDIO_BECOMING_NOISY intent
parents 21219ffc 1c2d8c2d
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -4290,7 +4290,8 @@ public class AudioService extends IAudioService.Stub {
        if ((state == 0) && ((device & mBecomingNoisyIntentDevices) != 0)) {
            int devices = 0;
            for (int dev : mConnectedDevices.keySet()) {
                if ((dev & mBecomingNoisyIntentDevices) != 0) {
                if (((dev & AudioSystem.DEVICE_BIT_IN) == 0) &&
                        ((dev & mBecomingNoisyIntentDevices) != 0)) {
                   devices |= dev;
                }
            }