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

Commit 3ef727ee authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 7592383 from 834e1faf to sc-release

Change-Id: I7e08be9cdff1cd33ba6ff1f0ce9a022dfce34d0e
parents a84c3db3 834e1faf
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1025,6 +1025,10 @@ public final class BluetoothA2dp implements BluetoothProfile {
    public boolean setBufferLengthMillis(@BluetoothCodecConfig.SourceCodecType int codec,
            int value) {
        if (VDBG) log("setBufferLengthMillis(" + codec + ", " + value + ")");
        if (value < 0) {
            Log.e(TAG, "Trying to set audio buffer length to a negative value: " + value);
            return false;
        }
        try {
            final IBluetoothA2dp service = getService();
            if (service != null && isEnabled()) {