am 648e593b: am 02d9054a: am db1c0e19: Merge "fix condition to send ACTION_AUDIO_BECOMING_NOISY intent" into lmp-dev
* commit '648e593be4855b7303b26532b5680ef02afb02f8': fix condition to send ACTION_AUDIO_BECOMING_NOISY intent
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user