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

Commit b0e5c3bf authored by William Escande's avatar William Escande
Browse files

API-REVIEW: add detail in codec switch javadoc

Fix: 222434921
Test: no test for doc
Tag: #refactor
Change-Id: Icc11f11cdb95f71705c7c82b69bc957b86fedfd4
parent 099bd1e4
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -839,6 +839,10 @@ public final class BluetoothA2dp implements BluetoothProfile {
     *
     * If the given device supports another codec type than
     * {@link BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC}, this will switch to it.
     * Switching from one codec to another will create a short audio drop.
     * In case of multiple applications calling the method, the last call will be taken into
     * account, overriding any previous call
     *
     * See {@link #setOptionalCodecsEnabled} to enable optional codecs by default
     * when the given device is connected.
     *
@@ -856,10 +860,14 @@ public final class BluetoothA2dp implements BluetoothProfile {
    }

    /**
     * Disables the optional codecs for the given device.
     * Disables the optional codecs for the given device for this connection.
     *
     * When optional codecs are disabled, the device will use the default
     * Bluetooth audio codec type.
     * Switching from one codec to another will create a short audio drop.
     * In case of multiple applications calling the method, the last call will be taken into
     * account, overriding any previous call
     *
     * See {@link BluetoothCodecConfig.SOURCE_CODEC_TYPE_SBC}.
     * See {@link #setOptionalCodecsEnabled} to disable optional codecs by default
     * when the given device is connected.