From 9451d2d3fe2a171f5f2bcab98a9e8281e8b52f87 Mon Sep 17 00:00:00 2001 From: Jack He Date: Fri, 10 Feb 2023 03:20:44 +0000 Subject: Revert "Upgrade RequireAPI annotation to prevent wrong lint error." Revert submission 2240043-bluetooth_codec_apis_public Reason for revert: b/268572180 Reverted changes: /q/submissionid:2240043-bluetooth_codec_apis_public Change-Id: I687ae8f58ce1b5c025b4e79b4c801ead5966b430 --- .../src/com/android/settingslib/bluetooth/A2dpProfile.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'packages/SettingsLib/src') diff --git a/packages/SettingsLib/src/com/android/settingslib/bluetooth/A2dpProfile.java b/packages/SettingsLib/src/com/android/settingslib/bluetooth/A2dpProfile.java index 42c3d1b8ce5c..df19c67f00e5 100644 --- a/packages/SettingsLib/src/com/android/settingslib/bluetooth/A2dpProfile.java +++ b/packages/SettingsLib/src/com/android/settingslib/bluetooth/A2dpProfile.java @@ -234,7 +234,7 @@ public class A2dpProfile implements LocalBluetoothProfile { /** * @return whether high quality audio is enabled or not */ - @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE) + @RequiresApi(Build.VERSION_CODES.TIRAMISU) public boolean isHighQualityAudioEnabled(BluetoothDevice device) { BluetoothDevice bluetoothDevice = (device != null) ? device : getActiveDevice(); if (bluetoothDevice == null) { @@ -286,7 +286,7 @@ public class A2dpProfile implements LocalBluetoothProfile { * @param device to get codec label from * @return the label associated with the device codec */ - @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE) + @RequiresApi(Build.VERSION_CODES.TIRAMISU) public String getHighQualityAudioOptionLabel(BluetoothDevice device) { BluetoothDevice bluetoothDevice = (device != null) ? device : getActiveDevice(); int unknownCodecId = R.string.bluetooth_profile_a2dp_high_quality_unknown_codec; -- cgit v1.2.3-59-g8ed1b