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

Commit 36cd5ef4 authored by Evan Severson's avatar Evan Severson Committed by Android (Google) Code Review
Browse files

Merge "Make the muteFromPrivacyToggle state transparent" into sc-dev

parents b61ef534 2b388071
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -3871,7 +3871,9 @@ public class AudioService extends IAudioService.Stub
     * @return true if microphone is reported as muted by primary HAL
     */
    public boolean isMicrophoneMuted() {
        return mMicMuteFromSystemCached && !mMicMuteFromPrivacyToggle;
        return mMicMuteFromSystemCached
                && (!mMicMuteFromPrivacyToggle
                        || mMicMuteFromApi || mMicMuteFromRestrictions || mMicMuteFromSwitch);
    }

    private boolean isMicrophoneSupposedToBeMuted() {