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

Commit cdfae978 authored by Etienne Ruffieux's avatar Etienne Ruffieux
Browse files

Removed SDK comparison to fix errorprone target

Bug: 227275330
Test: manual
Tag: #feature
Change-Id: I358b1d6249dc75f04b7a5194ac4713a008733a14
parent 3c3c3992
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -1016,9 +1016,6 @@ public final class BluetoothA2dp implements BluetoothProfile {
                && value != BluetoothA2dp.OPTIONAL_CODECS_PREF_DISABLED
                && value != BluetoothA2dp.OPTIONAL_CODECS_PREF_DISABLED
                && value != BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED) {
                && value != BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED) {
            Log.e(TAG, "Invalid value passed to setOptionalCodecsEnabled: " + value);
            Log.e(TAG, "Invalid value passed to setOptionalCodecsEnabled: " + value);
            if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.TIRAMISU) {
                throw new IllegalArgumentException("Invalid codec preference");
            }
            return;
            return;
        }
        }
        final IBluetoothA2dp service = getService();
        final IBluetoothA2dp service = getService();