Merge "Group CSIP device based on CAP"
This commit is contained in:
@@ -68,7 +68,7 @@ public class CsipDeviceManager {
|
|||||||
}
|
}
|
||||||
|
|
||||||
for (Map.Entry<Integer, ParcelUuid> entry: groupIdMap.entrySet()) {
|
for (Map.Entry<Integer, ParcelUuid> entry: groupIdMap.entrySet()) {
|
||||||
if (entry.getValue().equals(BluetoothUuid.BASE_UUID)) {
|
if (entry.getValue().equals(BluetoothUuid.CAP)) {
|
||||||
return entry.getKey();
|
return entry.getKey();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -338,7 +338,7 @@ public class LocalBluetoothProfileManager {
|
|||||||
.getGroupUuidMapByDevice(cachedDevice.getDevice());
|
.getGroupUuidMapByDevice(cachedDevice.getDevice());
|
||||||
if (groupIdMap != null) {
|
if (groupIdMap != null) {
|
||||||
for (Map.Entry<Integer, ParcelUuid> entry: groupIdMap.entrySet()) {
|
for (Map.Entry<Integer, ParcelUuid> entry: groupIdMap.entrySet()) {
|
||||||
if (entry.getValue().equals(BluetoothUuid.BASE_UUID)) {
|
if (entry.getValue().equals(BluetoothUuid.CAP)) {
|
||||||
cachedDevice.setGroupId(entry.getKey());
|
cachedDevice.setGroupId(entry.getKey());
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user