Merge "Configure Bluetooth profiles displayed in settings" am: 22e174a788 am: d815784643 am: ce0de3705c
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1424829 Change-Id: I20e984ecc8515928c4702077f31b51abee4d114c
This commit is contained in:
@@ -543,12 +543,13 @@ public class LocalBluetoothProfileManager {
|
||||
mPbapProfile.setEnabled(device, true);
|
||||
}
|
||||
|
||||
if (mMapClientProfile != null) {
|
||||
if ((mMapClientProfile != null)
|
||||
&& BluetoothUuid.containsAnyUuid(uuids, MapClientProfile.UUIDS)) {
|
||||
profiles.add(mMapClientProfile);
|
||||
removedProfiles.remove(mMapClientProfile);
|
||||
}
|
||||
|
||||
if ((mPbapClientProfile != null) && ArrayUtils.contains(localUuids, BluetoothUuid.PBAP_PCE)
|
||||
if ((mPbapClientProfile != null)
|
||||
&& BluetoothUuid.containsAnyUuid(uuids, PbapClientProfile.SRC_UUIDS)) {
|
||||
profiles.add(mPbapClientProfile);
|
||||
removedProfiles.remove(mPbapClientProfile);
|
||||
|
||||
@@ -47,8 +47,6 @@ public final class MapClientProfile implements LocalBluetoothProfile {
|
||||
private final LocalBluetoothProfileManager mProfileManager;
|
||||
|
||||
static final ParcelUuid[] UUIDS = {
|
||||
BluetoothUuid.MAP,
|
||||
BluetoothUuid.MNS,
|
||||
BluetoothUuid.MAS,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user