[Audiosharing] Avoid dup volume control entries

Test: atest
Bug: 402384034
Flag: com.android.settingslib.flags.enable_le_audio_sharing
Change-Id: I1c975a39106d50746c692586bf682301dd299f40
This commit is contained in:
Yiyi Shen
2025-03-17 11:48:36 +08:00
parent b96eb497da
commit 049835b568
9 changed files with 259 additions and 54 deletions

View File

@@ -429,6 +429,7 @@ public class ConnectedBluetoothDeviceUpdaterTest {
mDevicePreferenceCallback, /* metricsCategory= */ 0));
mBluetoothDeviceUpdater.setPrefContext(mContext);
doNothing().when(mBluetoothDeviceUpdater).addPreference(any());
doNothing().when(mBluetoothDeviceUpdater).removePreference(any());
doNothing().when(mBluetoothDeviceUpdater).removePreference(
any(CachedBluetoothDevice.class));
}
}