AudioService: fix regression on hearing aid profile

Fix regression introduced by Commit 3fe5af48 where the
hearing aid profile is not stored in BtHelper.

Bug: 211530990
Test: make
Change-Id: Ie3f8757f5fec78df2da028791e9ba2ebb5833675
This commit is contained in:
Eric Laurent
2022-02-22 14:31:16 +01:00
parent 4d897c6ad0
commit f61f174520

View File

@@ -479,6 +479,8 @@ public class BtHelper {
} }
if (profile == BluetoothProfile.A2DP) { if (profile == BluetoothProfile.A2DP) {
mA2dp = (BluetoothA2dp) proxy; mA2dp = (BluetoothA2dp) proxy;
} else if (profile == BluetoothProfile.HEARING_AID) {
mHearingAid = (BluetoothHearingAid) proxy;
} else if (profile == BluetoothProfile.LE_AUDIO) { } else if (profile == BluetoothProfile.LE_AUDIO) {
mLeAudio = (BluetoothLeAudio) proxy; mLeAudio = (BluetoothLeAudio) proxy;
} }