Merge "[API Review] Replace usage of getUuids by new SystemApi" am: e2b00d3a7d am: 1de1157d4e am: 520a6e5a9b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2020438 Change-Id: I20adac33682b4647fd1906f80dbed55a4476325c
This commit is contained in:
@@ -753,7 +753,10 @@ public class CachedBluetoothDevice implements Comparable<CachedBluetoothDevice>
|
||||
ParcelUuid[] uuids = mDevice.getUuids();
|
||||
if (uuids == null) return false;
|
||||
|
||||
ParcelUuid[] localUuids = mLocalAdapter.getUuids();
|
||||
List<ParcelUuid> uuidsList = mLocalAdapter.getUuidsList();
|
||||
ParcelUuid[] localUuids = new ParcelUuid[uuidsList.size()];
|
||||
uuidsList.toArray(localUuids);
|
||||
|
||||
if (localUuids == null) return false;
|
||||
|
||||
/*
|
||||
|
||||
@@ -126,7 +126,10 @@ public class LocalBluetoothAdapter {
|
||||
}
|
||||
|
||||
public ParcelUuid[] getUuids() {
|
||||
return mAdapter.getUuids();
|
||||
List<ParcelUuid> uuidsList = mAdapter.getUuidsList();
|
||||
ParcelUuid[] uuidsArray = new ParcelUuid[uuidsList.size()];
|
||||
uuidsList.toArray(uuidsArray);
|
||||
return uuidsArray;
|
||||
}
|
||||
|
||||
public boolean isDiscovering() {
|
||||
|
||||
Reference in New Issue
Block a user