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

Commit 31d05ac9 authored by Jean-Michel Trivi's avatar Jean-Michel Trivi
Browse files

AudioPlaybackConfiguration: port volume affects mute logic

In isMuteAffectingActiveState(), also take into
account whether the player is muted by the port
volume (happens if a stream type is muted).

Bug: 422280166
Test: see bug
Flag: EXEMPT bug fix

Change-Id: Ia35ce1670f36312b169660878c551062a607d914
parent 09831056
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -786,7 +786,9 @@ public final class AudioPlaybackConfiguration implements Parcelable {
    private boolean isMuteAffectingActiveState() {
        return (mMutedState & MUTED_BY_CLIENT_VOLUME) != 0
                || (mMutedState & MUTED_BY_VOLUME_SHAPER) != 0
                || (mMutedState & MUTED_BY_OP_PLAY_AUDIO) != 0;
                || (mMutedState & MUTED_BY_OP_PLAY_AUDIO) != 0
                || (mMutedState & MUTED_BY_STREAM_VOLUME) != 0
                || (mMutedState & MUTED_BY_PORT_VOLUME) != 0;
    }

    /**