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

Commit 2f6389b5 authored by agathaman's avatar agathaman Committed by android-build-merger
Browse files

Merge "Modified AudioService to broadcast ACTION_MICROPHONE_MUTE_CHANGE intent...

Merge "Modified AudioService to broadcast ACTION_MICROPHONE_MUTE_CHANGE intent to all users" am: cc96c57f am: 9a9f6902 am: 92226cde
am: f78e6f7f

Change-Id: I857974a27deb8b4fa7f3b611dd78465115b93602
parents 5604a69f f78e6f7f
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -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);
            }
        }
    }