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

Commit e61ac8ec authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

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

parents f9504d89 e25f2e77
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -1895,7 +1895,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();
@@ -2123,14 +2123,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;
@@ -2253,7 +2253,8 @@ public class DevelopmentSettings extends RestrictedSettingsFragment

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