Merge "Group CSIP device based on CAP" am: 8c0ae12d46 am: 88a9f98e2b am: 190d67ddef

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1934946

Change-Id: Ieec3b299eec5639ffeaa77783029f9bdce2a3c22
This commit is contained in:
Alice Kuo
2021-12-30 01:55:39 +00:00
committed by Automerger Merge Worker
2 changed files with 2 additions and 2 deletions

View File

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

View File

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