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

Commit 02e1eb7b authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "prohibit toggling setAudioModeIsVoip(false) for SM connection"

parents 4defc540 b83cc19f
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -2763,6 +2763,12 @@ public abstract class Connection extends Conferenceable {
     * @param isVoip True if the audio mode is VOIP.
     */
    public final void setAudioModeIsVoip(boolean isVoip) {
        if (!isVoip && (mConnectionProperties & PROPERTY_SELF_MANAGED) == PROPERTY_SELF_MANAGED) {
            Log.i(this,
                    "setAudioModeIsVoip: Ignored request to set a self-managed connection's"
                            + " audioModeIsVoip to false. Doing so can cause unwanted behavior.");
            return;
        }
        checkImmutable();
        mAudioModeIsVoip = isVoip;
        for (Listener l : mListeners) {