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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user