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

Commit 1c2d8c2d authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

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

* commit 'db1c0e1964f514ccaab1cc1b6325f5db0fe11fd0':
  fix condition to send ACTION_AUDIO_BECOMING_NOISY intent
parents 8730bdf7 6c104d84
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;
                }
            }