Merge "Modified AudioService to broadcast ACTION_MICROPHONE_MUTE_CHANGE intent to all users"

am: cc96c57f1a

Change-Id: Idc8bb0ff7f4242ff430bb9b5fbb0428e6cf14fc5
This commit is contained in:
agathaman
2019-06-20 14:12:13 -07:00
committed by android-build-merger

View File

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