Merge "Configure Bluetooth profiles displayed in settings" into rvc-qpr-dev
This commit is contained in:
@@ -543,12 +543,13 @@ public class LocalBluetoothProfileManager {
|
|||||||
mPbapProfile.setEnabled(device, true);
|
mPbapProfile.setEnabled(device, true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mMapClientProfile != null) {
|
if ((mMapClientProfile != null)
|
||||||
|
&& BluetoothUuid.containsAnyUuid(uuids, MapClientProfile.UUIDS)) {
|
||||||
profiles.add(mMapClientProfile);
|
profiles.add(mMapClientProfile);
|
||||||
removedProfiles.remove(mMapClientProfile);
|
removedProfiles.remove(mMapClientProfile);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((mPbapClientProfile != null) && ArrayUtils.contains(localUuids, BluetoothUuid.PBAP_PCE)
|
if ((mPbapClientProfile != null)
|
||||||
&& BluetoothUuid.containsAnyUuid(uuids, PbapClientProfile.SRC_UUIDS)) {
|
&& BluetoothUuid.containsAnyUuid(uuids, PbapClientProfile.SRC_UUIDS)) {
|
||||||
profiles.add(mPbapClientProfile);
|
profiles.add(mPbapClientProfile);
|
||||||
removedProfiles.remove(mPbapClientProfile);
|
removedProfiles.remove(mPbapClientProfile);
|
||||||
|
|||||||
@@ -47,8 +47,6 @@ public final class MapClientProfile implements LocalBluetoothProfile {
|
|||||||
private final LocalBluetoothProfileManager mProfileManager;
|
private final LocalBluetoothProfileManager mProfileManager;
|
||||||
|
|
||||||
static final ParcelUuid[] UUIDS = {
|
static final ParcelUuid[] UUIDS = {
|
||||||
BluetoothUuid.MAP,
|
|
||||||
BluetoothUuid.MNS,
|
|
||||||
BluetoothUuid.MAS,
|
BluetoothUuid.MAS,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user