Merge "Modified AudioService to broadcast ACTION_MICROPHONE_MUTE_CHANGE intent to all users" am: cc96c57f1a am: 9a9f6902a7

am: 92226cde71

Change-Id: I90286997420e0b5302440669ed52b0bd72030894
This commit is contained in:
agathaman
2019-06-20 14:40:31 -07:00
committed by android-build-merger

View File

@@ -2866,8 +2866,9 @@ public class AudioService extends IAudioService.Stub
AudioSystem.muteMicrophone(on);
Binder.restoreCallingIdentity(identity);
if (on != currentMute) {
mContext.sendBroadcast(new Intent(AudioManager.ACTION_MICROPHONE_MUTE_CHANGED)
.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY));
mContext.sendBroadcastAsUser(
new Intent(AudioManager.ACTION_MICROPHONE_MUTE_CHANGED)
.setFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY), UserHandle.ALL);
}
}
}