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:
Treehugger Robot
2020-09-21 23:19:11 +00:00
committed by Automerger Merge Worker
2 changed files with 3 additions and 4 deletions

View File

@@ -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);

View File

@@ -47,8 +47,6 @@ public final class MapClientProfile implements LocalBluetoothProfile {
private final LocalBluetoothProfileManager mProfileManager;
static final ParcelUuid[] UUIDS = {
BluetoothUuid.MAP,
BluetoothUuid.MNS,
BluetoothUuid.MAS,
};