AudioDeviceInventory: fix typo.

commit ace96019 contained a typo a method name:
AudioDeviceInventory.removePreferredDevicesForStrategyInt

Bug: 284468571
Test: make
Change-Id: Ia601f6f23dbc380c5af845472724d81686f0f4a8
This commit is contained in:
Eric Laurent
2023-06-01 14:49:21 +02:00
parent ee9049be01
commit 6fb4366736
2 changed files with 3 additions and 3 deletions

View File

@@ -2210,8 +2210,8 @@ import java.util.concurrent.atomic.AtomicBoolean;
mDeviceInventory.setPreferredDevicesForStrategyInt(
mAccessibilityStrategyId, Arrays.asList(defaultDevice));
} else {
mDeviceInventory.removePreferredDevicesForStrategInt(mCommunicationStrategyId);
mDeviceInventory.removePreferredDevicesForStrategInt(mAccessibilityStrategyId);
mDeviceInventory.removePreferredDevicesForStrategyInt(mCommunicationStrategyId);
mDeviceInventory.removePreferredDevicesForStrategyInt(mAccessibilityStrategyId);
}
mDeviceInventory.applyConnectedDevicesRoles();
} else {

View File

@@ -823,7 +823,7 @@ public class AudioDeviceInventory {
return status;
}
// Only used for internal requests
/*package*/ int removePreferredDevicesForStrategInt(int strategy) {
/*package*/ int removePreferredDevicesForStrategyInt(int strategy) {
return clearDevicesRoleForStrategy(
strategy, AudioSystem.DEVICE_ROLE_PREFERRED, true /*internal */);
}