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

Commit efc1188e authored by jasonwshsu's avatar jasonwshsu
Browse files

Clean up logic to not support 'ASHA' profile for 'Spatial Audio'

* SpatializerHelper in audio framework already not support TYPE_HEARING_AID, just clean up logic in settingslib to be consistent.

Bug: 409467374
Test: check spatial audio UI not visible for ASHA device
Flag: EXEMPT bugfix
Change-Id: Ib70083b106029953c9fb1c6eb02c11039988164a
parent f80c6c37
Loading
Loading
Loading
Loading
+1 −8
Original line number Diff line number Diff line
@@ -1153,7 +1153,7 @@ public class BluetoothUtils {

    /**
     * Gets {@link AudioDeviceAttributes} of bluetooth device for spatial audio. Returns null if
     * it's not an audio device(no A2DP, LE Audio and Hearing Aid profile).
     * it's not an audio device(no A2DP and LE Audio).
     */
    @Nullable
    public static AudioDeviceAttributes getAudioDeviceAttributesForSpatialAudio(
@@ -1188,13 +1188,6 @@ public class BluetoothUtils {
                        }

                        break;
                    case BluetoothProfile.HEARING_AID:
                        saDevice =
                                new AudioDeviceAttributes(
                                        AudioDeviceAttributes.ROLE_OUTPUT,
                                        AudioDeviceInfo.TYPE_HEARING_AID,
                                        cachedDevice.getAddress());
                        break;
                    default:
                        Log.i(
                                TAG,