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

Commit a84302f1 authored by Pavlin Radoslavov's avatar Pavlin Radoslavov Committed by android-build-merger
Browse files

Merge "Add support for Multi-A2DP state machines per device"

am: e61ac8ec

Change-Id: If1b5c0d5655ec7e2c465ef8b1633543ceba7181e
parents 0859a07a e61ac8ec
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1881,7 +1881,7 @@ public class DevelopmentSettings extends RestrictedSettingsFragment

        synchronized (mBluetoothA2dpLock) {
            if (mBluetoothA2dp != null) {
                codecStatus = mBluetoothA2dp.getCodecStatus();
                codecStatus = mBluetoothA2dp.getCodecStatus(null);      // Use current active device
                if (codecStatus != null) {
                    codecConfig = codecStatus.getCodecConfig();
                    codecsLocalCapabilities = codecStatus.getCodecsLocalCapabilities();
@@ -2100,14 +2100,14 @@ public class DevelopmentSettings extends RestrictedSettingsFragment
        case 6:
        synchronized (mBluetoothA2dpLock) {
            if (mBluetoothA2dp != null) {
                mBluetoothA2dp.enableOptionalCodecs();
                mBluetoothA2dp.enableOptionalCodecs(null); // Use current active device
            }
        }
        return;
        case 7:
        synchronized (mBluetoothA2dpLock) {
            if (mBluetoothA2dp != null) {
                mBluetoothA2dp.disableOptionalCodecs();
                mBluetoothA2dp.disableOptionalCodecs(null); // Use current active device
            }
        }
        return;
@@ -2230,7 +2230,8 @@ public class DevelopmentSettings extends RestrictedSettingsFragment

        synchronized (mBluetoothA2dpLock) {
            if (mBluetoothA2dp != null) {
                mBluetoothA2dp.setCodecConfigPreference(codecConfig);
                // Use current active device
                mBluetoothA2dp.setCodecConfigPreference(null, codecConfig);
            }
        }
    }