diff --git a/src/com/android/settings/DevelopmentSettings.java b/src/com/android/settings/DevelopmentSettings.java index 7a5cb3ca0f6..6c40051203e 100644 --- a/src/com/android/settings/DevelopmentSettings.java +++ b/src/com/android/settings/DevelopmentSettings.java @@ -2049,6 +2049,20 @@ public class DevelopmentSettings extends RestrictedSettingsFragment codecTypeValue = BluetoothCodecConfig.SOURCE_CODEC_TYPE_LDAC; codecPriorityValue = BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST; break; + case 6: + synchronized (mBluetoothA2dpLock) { + if (mBluetoothA2dp != null) { + mBluetoothA2dp.enableOptionalCodecs(); + } + } + return; + case 7: + synchronized (mBluetoothA2dpLock) { + if (mBluetoothA2dp != null) { + mBluetoothA2dp.disableOptionalCodecs(); + } + } + return; default: break; }