Set highest priority as default value to Bluetooth codec
-To set highest priority when codec modification comes from development setting Bug: 165442632 Test: make -j42 RunSettingsRoboTests Change-Id: I8cfbaa276f3b3e269f4a80e8aae987fbb90f646e
This commit is contained in:
@@ -16,6 +16,8 @@
|
||||
|
||||
package com.android.settings.development.bluetooth;
|
||||
|
||||
import static android.bluetooth.BluetoothCodecConfig.CODEC_PRIORITY_HIGHEST;
|
||||
|
||||
import android.bluetooth.BluetoothA2dp;
|
||||
import android.bluetooth.BluetoothCodecConfig;
|
||||
import android.bluetooth.BluetoothCodecStatus;
|
||||
@@ -113,7 +115,7 @@ public abstract class AbstractBluetoothDialogPreferenceController extends
|
||||
mBluetoothA2dpConfigStore.setSampleRate(config.getSampleRate());
|
||||
mBluetoothA2dpConfigStore.setBitsPerSample(config.getBitsPerSample());
|
||||
mBluetoothA2dpConfigStore.setChannelMode(config.getChannelMode());
|
||||
mBluetoothA2dpConfigStore.setCodecPriority(config.getCodecPriority());
|
||||
mBluetoothA2dpConfigStore.setCodecPriority(CODEC_PRIORITY_HIGHEST);
|
||||
mBluetoothA2dpConfigStore.setCodecSpecific1Value(config.getCodecSpecific1());
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user