Merge "Update the cache of a2dp config before writing config." into main

This commit is contained in:
Henri Chataing
2024-12-18 08:17:34 -08:00
committed by Gerrit Code Review

View File

@@ -85,6 +85,8 @@ public abstract class AbstractBluetoothDialogPreferenceController extends
if (bluetoothA2dp == null) {
return;
}
// update the cache of a2dp config(mBluetoothA2dpConfigStore) before writing config.
initConfigStore();
writeConfigurationValues(index);
final BluetoothCodecConfig codecConfig = mBluetoothA2dpConfigStore.createCodecConfig();
BluetoothDevice activeDevice = getA2dpActiveDevice();