Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6fb43667 authored by Eric Laurent's avatar Eric Laurent
Browse files

AudioDeviceInventory: fix typo.

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

Bug: 284468571
Test: make
Change-Id: Ia601f6f23dbc380c5af845472724d81686f0f4a8
parent ee9049be
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 {
+1 −1
Original line number Diff line number Diff line
@@ -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 */);
    }