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

Commit cc96c57f authored by agathaman's avatar agathaman Committed by Gerrit Code Review
Browse files

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

parents dd98a700 9c4b83c5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2520,8 +2520,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);
            }
        }
    }