Merge "Add BluetoothLeAudio to BluetoothAdapter#getProfileProxy and BluetoothAdapter#closeProfileProxy" into sc-dev am: 6041a06620
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15080834 Change-Id: Ife5d0552c1bbdd329d76530d44dc518279a06263
This commit is contained in:
@@ -3054,6 +3054,9 @@ public final class BluetoothAdapter {
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
} else if (profile == BluetoothProfile.LE_AUDIO) {
|
||||||
|
BluetoothLeAudio leAudio = new BluetoothLeAudio(context, listener, this);
|
||||||
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -3142,6 +3145,10 @@ public final class BluetoothAdapter {
|
|||||||
case BluetoothProfile.HEARING_AID:
|
case BluetoothProfile.HEARING_AID:
|
||||||
BluetoothHearingAid hearingAid = (BluetoothHearingAid) proxy;
|
BluetoothHearingAid hearingAid = (BluetoothHearingAid) proxy;
|
||||||
hearingAid.close();
|
hearingAid.close();
|
||||||
|
break;
|
||||||
|
case BluetoothProfile.LE_AUDIO:
|
||||||
|
BluetoothLeAudio leAudio = (BluetoothLeAudio) proxy;
|
||||||
|
leAudio.close();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user