Merge "Update the cache of a2dp config before writing config." into main am: 18eac4ef27

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/3350514

Change-Id: I56c1fe945677d5eac84756cf87aab233724ef01d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Henri Chataing
2024-12-18 08:50:14 -08:00
committed by Automerger Merge Worker

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();