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

Commit 8a231fbb authored by Etienne Ruffieux's avatar Etienne Ruffieux Committed by Automerger Merge Worker
Browse files

Merge "Upgrade RequireAPI annotation to prevent wrong lint error." am:...

Merge "Upgrade RequireAPI annotation to prevent wrong lint error." am: e8d4b0ed am: 53a9eb7f am: 2cef4b55

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2240043



Change-Id: I3794bfc11f5677bf82114326abb195fcf00c053f
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 661cea2c 2cef4b55
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -235,7 +235,7 @@ public class A2dpProfile implements LocalBluetoothProfile {
    /**
     * @return whether high quality audio is enabled or not
     */
    @RequiresApi(Build.VERSION_CODES.TIRAMISU)
    @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
    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.TIRAMISU)
    @RequiresApi(Build.VERSION_CODES.UPSIDE_DOWN_CAKE)
    public String getHighQualityAudioOptionLabel(BluetoothDevice device) {
        BluetoothDevice bluetoothDevice = (device != null) ? device : getActiveDevice();
        int unknownCodecId = R.string.bluetooth_profile_a2dp_high_quality_unknown_codec;