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

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

Merge "Do not switch codec to OPUS if optional codec has been disabled" into tm-qpr-dev

parents c1912d22 d01f0a85
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1641,6 +1641,9 @@ public class A2dpService extends ProfileService {
    }

    public void switchCodecByBufferSize(BluetoothDevice device, boolean isLowLatency) {
        if (getOptionalCodecsEnabled(device) != BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED) {
            return;
        }
        mA2dpCodecConfig.switchCodecByBufferSize(
                device, isLowLatency, getCodecStatus(device).getCodecConfig().getCodecType());
    }