Merge "Revert "Upgrade RequireAPI annotation to prevent wrong lint error."" am: 92bfdc6bd7 am: ef7d75e740 am: 8705c156bd
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2427231 Change-Id: I2b169a06b6aeeaed876fa68985a90b339161b887 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -235,7 +235,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) {
|
||||
@@ -287,7 +287,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;
|
||||
|
||||
Reference in New Issue
Block a user