CachedBluetoothDevice: Add missing LeAudioProfile

LeAudioProfile state changes were not handled and
so we couldn't detect timeouts on this profile.

Bug: 268587046
Test: BluetoothInstrumentationTest
Change-Id: I492bfc970103a3235a2ec07ebea88016753507d9
This commit is contained in:
Michał Narajowski
2023-03-02 15:08:18 +00:00
parent a8e97b09f1
commit 14e5641321

View File

@@ -208,7 +208,7 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
synchronized (mProfileLock) {
if (profile instanceof A2dpProfile || profile instanceof HeadsetProfile
|| profile instanceof HearingAidProfile) {
|| profile instanceof HearingAidProfile || profile instanceof LeAudioProfile) {
setProfileConnectedStatus(profile.getProfileId(), false);
switch (newProfileState) {
case BluetoothProfile.STATE_CONNECTED: