diff options
author | Etienne Ruffieux <eruffieux@google.com> | 2022-03-29 15:23:00 +0000 |
---|---|---|
committer | Etienne Ruffieux <eruffieux@google.com> | 2022-03-29 16:58:03 +0000 |
commit | cdfae9782f307b768afaf2d286169475aff195b0 (patch) | |
tree | f1726d1522f85e44f8b9747a682037bbd3c22141 /framework/java/android/bluetooth/BluetoothA2dp.java | |
parent | 3c3c3992a39bfef1609a791497105e7f1a886391 (diff) |
Removed SDK comparison to fix errorprone target
Bug: 227275330
Test: manual
Tag: #feature
Change-Id: I358b1d6249dc75f04b7a5194ac4713a008733a14
Diffstat (limited to 'framework/java/android/bluetooth/BluetoothA2dp.java')
-rw-r--r-- | framework/java/android/bluetooth/BluetoothA2dp.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/framework/java/android/bluetooth/BluetoothA2dp.java b/framework/java/android/bluetooth/BluetoothA2dp.java index 6022058241..7379da7538 100644 --- a/framework/java/android/bluetooth/BluetoothA2dp.java +++ b/framework/java/android/bluetooth/BluetoothA2dp.java @@ -1016,9 +1016,6 @@ public final class BluetoothA2dp implements BluetoothProfile { && value != BluetoothA2dp.OPTIONAL_CODECS_PREF_DISABLED && value != BluetoothA2dp.OPTIONAL_CODECS_PREF_ENABLED) { 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; } final IBluetoothA2dp service = getService(); |