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

Commit 6c104d84 authored by Eric Laurent's avatar Eric Laurent Committed by Android (Google) Code Review
Browse files

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

parents e193455e 27c30e44
Loading
Loading
Loading
Loading
+2 −1
Original line number Original line Diff line number Diff line
@@ -4290,7 +4290,8 @@ public class AudioService extends IAudioService.Stub {
        if ((state == 0) && ((device & mBecomingNoisyIntentDevices) != 0)) {
        if ((state == 0) && ((device & mBecomingNoisyIntentDevices) != 0)) {
            int devices = 0;
            int devices = 0;
            for (int dev : mConnectedDevices.keySet()) {
            for (int dev : mConnectedDevices.keySet()) {
                if ((dev & mBecomingNoisyIntentDevices) != 0) {
                if (((dev & AudioSystem.DEVICE_BIT_IN) == 0) &&
                        ((dev & mBecomingNoisyIntentDevices) != 0)) {
                   devices |= dev;
                   devices |= dev;
                }
                }
            }
            }